Sha256: 1a60a8521b849bfc20dd8bc77778267a7a2157d4a8f45ecea0943ea4476b6ac6

Contents?: true

Size: 583 Bytes

Versions: 16

Compression:

Stored size: 583 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift File.join(__dir__, %w(.. lib))

require 'cookstyle'

# force the fail level to :convention so that we can set all our new rules to
# the lowest level of :refactor without failing everyone's CI jobs
unless ARGV.include?('--fail-level')
  ARGV << '--fail-level'
  ARGV << 'C'
end

# if only -v is passed we'll get 3 args (-v, --fail-level, and C)
if ARGV.size == 3 && %w(-v --version).include?(ARGV.first)
  puts "Cookstyle #{Cookstyle::VERSION}"
  print '  * RuboCop '
end

load Gem.bin_path('rubocop', 'rubocop')

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cookstyle-7.6.1 bin/cookstyle
cookstyle-7.5.3 bin/cookstyle
cookstyle-7.5.2 bin/cookstyle
cookstyle-7.5.1 bin/cookstyle
cookstyle-7.4.0 bin/cookstyle
cookstyle-7.3.11 bin/cookstyle
cookstyle-7.3.10 bin/cookstyle
cookstyle-7.2.1 bin/cookstyle
cookstyle-7.1.2 bin/cookstyle
cookstyle-7.0.0 bin/cookstyle
cookstyle-6.21.1 bin/cookstyle
cookstyle-6.20.2 bin/cookstyle
cookstyle-6.20.1 bin/cookstyle
cookstyle-6.19.11 bin/cookstyle
cookstyle-6.19.5 bin/cookstyle
cookstyle-6.18.8 bin/cookstyle