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

Function remove_misra_config

addons/test/misra_test.py:16–21  ·  view source on GitHub ↗
(s:str)

Source from the content-addressed store, hash-verified

14
15
16def remove_misra_config(s:str):
17 ret = ''
18 for line in s.splitlines():
19 if '[misra-config]' not in line:
20 ret += line + '\n'
21 return ret
22
23
24@pytest.fixture(scope="function")

Calls

no outgoing calls

Tested by

no test coverage detected