Class: Govuk::Lint::ConfigFile

Inherits:
Object
  • Object
show all
Defined in:
lib/govuk/lint/config_file.rb

Constant Summary collapse

CONFIG_PATH =
File.expand_path("../../../configs", __dir__)
BASE_CONFIG_FILE =
File.join(CONFIG_PATH, "rubocop/all.yml")

Instance Method Summary collapse

Instance Method Details

#config_file_pathObject



10
11
12
13
14
# File 'lib/govuk/lint/config_file.rb', line 10

def config_file_path
  return BASE_CONFIG_FILE unless File.exist?(local_config_file_path)

  tempfile_for_configs.path
end