Sha256: 9a76167596c06a98be1bb378cd18c7156b87afbbb48c9e1b5e558c157f4116e7

Contents?: true

Size: 551 Bytes

Versions: 23

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

  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

23 entries across 19 versions & 3 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/rubocop-1.35.1/exe/rubocop
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/rubocop-1.35.1/exe/rubocop
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/rubocop-1.35.1/exe/rubocop
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-1.31.2/exe/rubocop
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-1.35.1/exe/rubocop
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-1.36.0/exe/rubocop
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.31.2/exe/rubocop
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.35.1/exe/rubocop
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-1.36.0/exe/rubocop
rubocop-1.39.0 exe/rubocop
rubocop-1.38.0 exe/rubocop
rubocop-1.37.1 exe/rubocop
rubocop-1.37.0 exe/rubocop
rubocop-1.36.0 exe/rubocop
rubocop-1.35.1 exe/rubocop
rubocop-1.35.0 exe/rubocop
rubocop-1.34.1 exe/rubocop
rubocop-1.34.0 exe/rubocop
rubocop-1.33.0 exe/rubocop
rubocop-1.32.0 exe/rubocop