From 2ca453274a113c2a241c59787337e7a15b757da6 Mon Sep 17 00:00:00 2001 From: Jeff Felchner Date: Mon, 15 Jan 2018 17:11:08 -0600 Subject: [PATCH] Add more settings files to ChamberSecurity Previously the files were only looking for where they live when working in a Rails app. Now the file set covers more use cases: * `settings-production.yml` which is a namespaced settings file * `settings.yml.erb` which is an ERB pre-processed settings file * Settings which live in projects like Sinatra and a Rubygem --- config/default.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/default.yml b/config/default.yml index 6ce9699b..9d95fd4e 100644 --- a/config/default.yml +++ b/config/default.yml @@ -191,8 +191,14 @@ PreCommit: flags: ['secure', '--files'] install_command: 'gem install chamber' include: - - 'config/settings.yml' + - 'config/settings*.yml' + - 'config/settings*.yml.erb' - 'config/settings/**/*.yml' + - 'config/settings/**/*.yml.erb' + - 'settings*.yml' + - 'settings*.yml.erb' + - 'settings/**/*.yml' + - 'settings/**/*.yml.erb' CoffeeLint: enabled: false