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