mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
394 B
18 lines
394 B
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
$LOAD_PATH.unshift("#{__dir__}/../lib")
|
|
|
|
require 'rubocop/server'
|
|
server_cli = RuboCop::Server::CLI.new
|
|
exit_status = server_cli.run
|
|
exit exit_status if server_cli.exit?
|
|
|
|
if RuboCop::Server.running?
|
|
exit_status = RuboCop::Server::ClientCommand::Exec.new.run
|
|
else
|
|
require 'rubocop'
|
|
exit_status = RuboCop::CLI.new.run
|
|
end
|
|
exit exit_status
|