Sha256: 1495156ade67919401b763c0ac9cdbe64787a49197ae94967365b192172843ab

Contents?: true

Size: 551 Bytes

Versions: 158

Compression:

Stored size: 551 Bytes

Contents

#!/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 'benchmark'
  require 'rubocop'

  cli = RuboCop::CLI.new

  time = Benchmark.realtime { exit_status = cli.run }

  puts "Finished in #{time} seconds" if cli.options[:debug] || cli.options[:display_time]
end
exit exit_status

Version data entries

158 entries across 157 versions & 17 rubygems

Version Path
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.90 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.89 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.88 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.87 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.86 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.85 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.84 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.83 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.82 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.81 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.80 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.79 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop
harbr-0.1.78 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/exe/rubocop