Class: Govuk::Lint::ConfigFile
- Inherits:
-
Object
- Object
- Govuk::Lint::ConfigFile
- Defined in:
- lib/govuk/lint/config_file.rb
Constant Summary collapse
- CONFIG_PATH =
File.("../../../../configs", __FILE__)
- BASE_CONFIG_FILE =
File.join(CONFIG_PATH, "rubocop/all.yml")
Instance Method Summary collapse
Instance Method Details
#config_file_path ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/govuk/lint/config_file.rb', line 10 def config_file_path return BASE_CONFIG_FILE unless File.exist?(local_config_file_path) config = merged_global_and_local_configs file = create_tempfile_for_configs(config) file.path end |