Sha256: 62c80f87a80f83c4dd36c176ca202b27d9af6dd9e2aa60a6a2cd28cc073ef662

Contents?: true

Size: 594 Bytes

Versions: 39

Compression:

Stored size: 594 Bytes

Contents

#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), %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

39 entries across 39 versions & 1 rubygems

Version Path
cookstyle-6.11.4 bin/cookstyle
cookstyle-6.10.2 bin/cookstyle
cookstyle-6.9.0 bin/cookstyle
cookstyle-6.8.0 bin/cookstyle
cookstyle-6.7.3 bin/cookstyle
cookstyle-6.6.9 bin/cookstyle
cookstyle-6.5.3 bin/cookstyle
cookstyle-6.4.4 bin/cookstyle
cookstyle-5.23.0 bin/cookstyle
cookstyle-6.3.4 bin/cookstyle
cookstyle-6.2.9 bin/cookstyle
cookstyle-6.2.5 bin/cookstyle
cookstyle-6.1.6 bin/cookstyle
cookstyle-6.0.19 bin/cookstyle
cookstyle-5.22.6 bin/cookstyle
cookstyle-5.21.9 bin/cookstyle
cookstyle-5.20.0 bin/cookstyle
cookstyle-5.19.9 bin/cookstyle
cookstyle-5.18.4 bin/cookstyle
cookstyle-5.17.4 bin/cookstyle