Sha256: 255c68522853d4e151da0cbff8615b0df72cfa8666cf6f4d339cfc2741a80e13
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift("#{__dir__}/../lib") require 'rubocop' require 'benchmark' cli = RuboCop::CLI.new result = 0 if defined?(Bundler) gemfile_lock = Bundler.read_file(Bundler.default_lockfile) parser = Bundler::LockfileParser.new(gemfile_lock) unless parser.dependencies['rubocop-performance'] warn Rainbow(<<-MESSAGE.strip_indent).yellow.to_s [Warn] Performance Cops will be removed from RuboCop 0.68. Use rubocop-performance gem instead. https://github.com/rubocop-hq/rubocop/tree/master/manual/migrate_performance_cops.md MESSAGE end end time = Benchmark.realtime do result = cli.run end puts "Finished in #{time} seconds" if cli.options[:debug] exit result
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.67.2 | exe/rubocop |
rubocop-0.67.1 | exe/rubocop |
rubocop-0.67.0 | exe/rubocop |