Module: Cookstyle
- Defined in:
- lib/cookstyle.rb,
lib/cookstyle/version.rb,
lib/cookstyle/chefstyle.rb
Overview
Cookstyle patches the RuboCop tool to set a new default configuration that is vendored in the Cookstyle codebase.
Constant Summary collapse
- VERSION =
rubocop: disable Style/StringLiterals
"8.5.3"- RUBOCOP_VERSION =
'1.81.7'- CHEFSTYLE_CONFIG =
true
Class Method Summary collapse
-
.config ⇒ String
The absolute path to the main RuboCop configuration YAML file.
Class Method Details
.config ⇒ String
22 23 24 25 |
# File 'lib/cookstyle.rb', line 22 def self.config config_file = const_defined?(:CHEFSTYLE_CONFIG) ? 'chefstyle.yml' : 'default.yml' File.realpath(File.join(__dir__, '..', 'config', config_file)) end |