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 =
version of cookstyle
"8.7.6"- RUBOCOP_VERSION =
version of rubocop we pin to
'1.86.1'- CHEFSTYLE_CONFIG =
true
Class Method Summary collapse
-
.config ⇒ String
The absolute path to the main RuboCop configuration YAML file.
Class Method Details
.config ⇒ String
Returns the absolute path to the main RuboCop configuration YAML file.
23 24 25 26 |
# File 'lib/cookstyle.rb', line 23 def self.config config_file = const_defined?(:CHEFSTYLE_CONFIG) ? 'chefstyle.yml' : 'default.yml' File.realpath(File.join(__dir__, '..', 'config', config_file)) end |