MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / check_file_naming

Function check_file_naming

addons/namingng.py:282–291  ·  view source on GitHub ↗
(conf,data)

Source from the content-addressed store, hash-verified

280 process_data(conf,data,cli,debugprint)
281
282def check_file_naming(conf,data):
283 for source_file in data.files:
284 basename = os.path.basename(source_file)
285 good = False
286 for exp in conf.file:
287 good |= bool(re.match(exp, source_file))
288 good |= bool(re.match(exp, basename))
289 if not good:
290 mockToken = DataStruct(source_file, 0, basename)
291 reportNamingError(mockToken, 'File name ' + basename + ' violates naming convention')
292
293def check_namespace_naming(conf,data):
294 for tk in data.rawTokens:

Callers 1

process_dataFunction · 0.85

Calls 3

DataStructClass · 0.85
reportNamingErrorFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected