Skip to content

Commit

Permalink
Whitelist HeterogeneousCore/* in CMS Coding rules (cms-sw#257)
Browse files Browse the repository at this point in the history
Let packages under HeterogeneousCore/ ignore violations to CMS coding rule #3,
that forbids using `catch (...)` statements.
  • Loading branch information
fwyzard committed Jan 21, 2019
1 parent 6e7a0a6 commit 9d7dac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/ReleaseScripts/python/cmsCodeRules/config.py
Expand Up @@ -63,7 +63,7 @@

Configuration[ruleName]['description'] = 'Search for "catch(...)" statements in *.cc, *.cxx files'
Configuration[ruleName]['filesToMatch'] = ['*.cc', '*.cxx']
Configuration[ruleName]['exceptPaths'] = ['FWCore/*', 'EventFilter/*', '*/*/test/*', '*/*/bin/*']
Configuration[ruleName]['exceptPaths'] = ['FWCore/*', 'EventFilter/*', 'HeterogeneousCore/*', '*/*/test/*', '*/*/bin/*']
Configuration[ruleName]['skip'] = [comment]
Configuration[ruleName]['filter'] = 'catch\s*\(\s*\.\.\.\s*\)' #should be regular expression
Configuration[ruleName]['exceptFilter'] = []
Expand Down

0 comments on commit 9d7dac0

Please sign in to comment.