|
35 | 35 | Configuration[ruleName]['filesToMatch'] = ['*.h'] |
36 | 36 | Configuration[ruleName]['exceptPaths'] = ['HeterogeneousCore/CUDAUtilities/interface/cudaCompat.h'] |
37 | 37 | Configuration[ruleName]['skip'] = [comment, function] |
38 | | -Configuration[ruleName]['filter'] = '(\susing|\Ausing)\s+(namespace|std::)' #should be regular expression |
| 38 | +Configuration[ruleName]['filter'] = '(\\susing|\\Ausing)\\s+(namespace|std::)' #should be regular expression |
39 | 39 | Configuration[ruleName]['exceptFilter'] = [] |
40 | 40 |
|
41 | 41 | # -------------------------------------------------------------------------------- |
|
50 | 50 | Configuration[ruleName]['filesToMatch'] = ['BuildFile', 'BuildFile.xml'] |
51 | 51 | Configuration[ruleName]['exceptPaths'] = [] |
52 | 52 | Configuration[ruleName]['skip'] = [comment] |
53 | | -Configuration[ruleName]['filter'] = '\s(CXXFLAGS|CPPFLAGS)(\+|=|\w|\"|\'|-|\s)*(-g|-O0)(\s|\'|\")' #should be regular expression |
| 53 | +Configuration[ruleName]['filter'] = '\\s(CXXFLAGS|CPPFLAGS)(\\+|=|\\w|\"|\'|-|\\s)*(-g|-O0)(\\s|\'|\")' #should be regular expression |
54 | 54 | Configuration[ruleName]['exceptFilter'] = [] |
55 | 55 |
|
56 | 56 | # -------------------------------------------------------------------------------- |
|
65 | 65 | Configuration[ruleName]['filesToMatch'] = ['*.cc', '*.cxx'] |
66 | 66 | Configuration[ruleName]['exceptPaths'] = ['FWCore/*', 'EventFilter/*', '*/*/test/*', '*/*/bin/*'] |
67 | 67 | Configuration[ruleName]['skip'] = [comment] |
68 | | -Configuration[ruleName]['filter'] = 'catch\s*\(\s*\.\.\.\s*\)' #should be regular expression |
| 68 | +Configuration[ruleName]['filter'] = 'catch\\s*\\(\\s*\\.\\.\\.\\s*\\)' #should be regular expression |
69 | 69 | Configuration[ruleName]['exceptFilter'] = [] |
70 | 70 | # -------------------------------------------------------------------------------- |
71 | 71 |
|
|
92 | 92 | 'PhysicsTools/JetMCUtils/interface/combination.h', |
93 | 93 | ] #could be file name, dir, fileName:line. But path should be only from that directory in which we are searching |
94 | 94 | Configuration[ruleName]['skip'] = [] |
95 | | -Configuration[ruleName]['filter'] = '(\A|\W)(c|C)(o|O)(p|P)(y|Y)(r|R)(i|I)(g|G)(h|H)(t|T)\W(\+|=|\w|\"|\'|-|\s)*(\((c|C)\)|\d{4})' #should be regular expression |
| 95 | +Configuration[ruleName]['filter'] = '(\\A|\\W)(c|C)(o|O)(p|P)(y|Y)(r|R)(i|I)(g|G)(h|H)(t|T)\\W(\\+|=|\\w|\"|\'|-|\\s)*(\\((c|C)\\)|\\d{4})' #should be regular expression |
96 | 96 | Configuration[ruleName]['exceptFilter'] = [] |
97 | 97 |
|
98 | 98 | # -------------------------------------------------------------------------------- |
|
107 | 107 | Configuration[ruleName]['filesToMatch'] = ['*.h', '*.c', '*.cc', '*.cxx'] |
108 | 108 | Configuration[ruleName]['exceptPaths'] = ['*/*LinkDef.h', |
109 | 109 | 'FWCore/Utilities/interface/tinyxml.h', |
110 | | - 'Utilities/StorageFactory/src/LocalFileSystem.cc:.*:#\s*pragma\s+GCC\s+diagnostic\s+ignored', |
| 110 | + 'Utilities/StorageFactory/src/LocalFileSystem.cc:.*:#\\s*pragma\\s+GCC\\s+diagnostic\\s+ignored', |
111 | 111 | 'RecoVertex/BeamSpotProducer/test/scripts/BSVectorDict.h', |
112 | | - 'FWCore/Utilities/*/*:.*:#\s*pragma\s+GCC\s+visibility\s+(push\\(default\\)|pop)\s*$', |
| 112 | + 'FWCore/Utilities/*/*:.*:#\\s*pragma\\s+GCC\\s+visibility\\s+(push\\(default\\)|pop)\\s*$', |
113 | 113 | 'CondFormats/JetMETObjects/interface/Linkdef.h', |
114 | 114 | 'DataFormats/GeometryVector/interface/Basic3DVectorLD.h', |
115 | 115 | 'DataFormats/Scalers/interface/ScalersRaw.h', |
|
161 | 161 | 'RecoTracker/TkDetLayers/src/TIDRing.h', |
162 | 162 | ]#could be file name, dir, fileName:line. Path should be only from that directory in which we are searching |
163 | 163 | Configuration[ruleName]['skip'] = [comment] |
164 | | -Configuration[ruleName]['filter'] = '#\s*pragma\s' #should be regular expression |
| 164 | +Configuration[ruleName]['filter'] = '#\\s*pragma\\s' #should be regular expression |
165 | 165 | Configuration[ruleName]['exceptFilter'] = [] |
166 | 166 | # -------------------------------------------------------------------------------- |
167 | 167 | # configuration for rule 6 |
|
183 | 183 | 'L1Trigger/CSCTrackFinder/BuildFile.xml:.*:ADD_SUBDIR=', |
184 | 184 | 'MagneticField/Interpolation/BuildFile.xml:.*:="-Wno-format"', |
185 | 185 | 'MagneticField/Interpolation/test/BuildFile.xml:.*:="-Wno-format"', |
186 | | - 'GeneratorInterface/Pythia6Interface/plugins/BuildFile.xml:.*:LDFLAGS="\$\(PYTHIA6_BASE\)/lib/pydata.o"', |
| 186 | + 'GeneratorInterface/Pythia6Interface/plugins/BuildFile.xml:.*:LDFLAGS="\\$\\(PYTHIA6_BASE\\)/lib/pydata.o"', |
187 | 187 | ] |
188 | 188 | Configuration[ruleName]['skip'] = [comment] |
189 | | -Configuration[ruleName]['filter'] = '<\s*(f|F)(l|L)(a|A)(g|G)(s|S)\s+' #should be regular expression |
| 189 | +Configuration[ruleName]['filter'] = '<\\s*(f|F)(l|L)(a|A)(g|G)(s|S)\\s+' #should be regular expression |
190 | 190 | Configuration[ruleName]['exceptFilter'] = ['EDM_PLUGIN','RIVET_PLUGIN', 'GENREFLEX_ARGS', 'TEST_RUNNER_ARGS', 'INSTALL_SCRIPTS', 'NO_TESTRUN', 'NO_EXPORT'] |
191 | 191 | # -------------------------------------------------------------------------------- |
192 | 192 |
|
|
0 commit comments