Sha256: c1a32b5d0addce2fcb69b6ec5323e21efad4f6380e215e783ff04e36b6564cb5
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true if ARGV.include?('--chefstyle') ARGV.delete('--chefstyle') module Cookstyle CHEFSTYLE_CONFIG = true end end $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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cookstyle-7.32.7 | bin/cookstyle |