Sha256: 30d451d365867c12276e448acfd70e4ee86167cb42babb20bb5c3507ce1c7063

Contents?: true

Size: 624 Bytes

Versions: 10

Compression:

Stored size: 624 Bytes

Contents

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

$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

10 entries across 10 versions & 1 rubygems

Version Path
cookstyle-6.16.10 bin/cookstyle
cookstyle-6.16.9 bin/cookstyle
cookstyle-6.16.7 bin/cookstyle
cookstyle-6.16.4 bin/cookstyle
cookstyle-6.15.9 bin/cookstyle
cookstyle-6.15.5 bin/cookstyle
cookstyle-6.15.3 bin/cookstyle
cookstyle-6.14.7 bin/cookstyle
cookstyle-6.13.3 bin/cookstyle
cookstyle-6.12.6 bin/cookstyle