Sha256: a901699ae0ef60a582a5ae65e6947c64510bcaee3326e9e517a741a296db09ba

Contents?: true

Size: 721 Bytes

Versions: 47

Compression:

Stored size: 721 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

# we want to link to our docs
unless ARGV.include?('--display-style-guide')
  ARGV << '--display-style-guide'
end

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

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

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
cookstyle-ng-8.0.0 bin/cookstyle
cookstyle-7.32.2 bin/cookstyle
cookstyle-7.32.1 bin/cookstyle
cookstyle-7.32.0 bin/cookstyle
cookstyle-7.31.9 bin/cookstyle
cookstyle-7.31.7 bin/cookstyle
cookstyle-7.31.3 bin/cookstyle
cookstyle-7.31.1 bin/cookstyle
cookstyle-7.31.0 bin/cookstyle
cookstyle-7.30.4 bin/cookstyle
cookstyle-7.30.3 bin/cookstyle
cookstyle-7.30.1 bin/cookstyle
cookstyle-7.28.2 bin/cookstyle
cookstyle-7.27.0 bin/cookstyle
cookstyle-7.26.1 bin/cookstyle
cookstyle-7.25.10 bin/cookstyle
cookstyle-7.25.9 bin/cookstyle
cookstyle-7.25.8 bin/cookstyle
cookstyle-7.25.6 bin/cookstyle
cookstyle-7.24.1 bin/cookstyle