diff options
| author | Kyleen MacGugan <kmacgugan@chef.io> | 2015-03-02 13:25:26 -0800 |
|---|---|---|
| committer | Kyleen MacGugan <kmacgugan@chef.io> | 2015-03-03 09:48:48 -0800 |
| commit | cd8df9a5c54011208320b01d0cbd49da9c5a2dcf (patch) | |
| tree | 74fe96c257f2b303e00f9677ea01e7c76643448a /lib/chef/audit | |
| parent | c2dfb56e730214266ae07a57a56e5889b1e6b85b (diff) | |
| download | chef-cd8df9a5c54011208320b01d0cbd49da9c5a2dcf.tar.gz | |
Add /lib/chef/ to backtrace exclusion patterns for audit modekyleen/audit-exclusion
Exclusion pattern now includes anything with /lib/chef/ only
fix spacing issue
Diffstat (limited to 'lib/chef/audit')
| -rw-r--r-- | lib/chef/audit/runner.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb index e7d1657d69..13ba95428c 100644 --- a/lib/chef/audit/runner.rb +++ b/lib/chef/audit/runner.rb @@ -45,6 +45,10 @@ class Chef RSpec.world.reporter.examples.size end + def exclusion_pattern + Regexp.new(".+[\\\/]lib[\\\/]chef[\\\/]") + end + private # Prepare to run audits: # - Require files @@ -96,6 +100,7 @@ class Chef RSpec.configure do |c| c.color = Chef::Config[:color] c.expose_dsl_globally = false + c.backtrace_exclusion_patterns << exclusion_pattern end end |
