403e7f1f7d
In case a user accidentally uses a wrong JSON file (e.g. naming.json, which is the config file for namingng.py), the code could give a confusing exception. This happens when the key 'script' is not defined as a string. This is solved by testing the key for existence and type. In case 'script' is not a key or refers to a type other than a string, a clear error is given, stating for example: 'Loading naming.json failed. script must be set to a string value.' The message is kept in line with other messages. Maybe it can be clarified further, e.g. 'Loading naming.json failed. A key "script" must be set with a string value referring to a Python script.' - in which case the errors relating to other keys may also be clarified. |
||
---|---|---|
.. | ||
QML-Samples-TableView | ||
helloworld | ||
proj-inline-suppress | ||
proj-inline-suppress-unusedFunction | ||
proj-suppress-syntaxError | ||
proj2 | ||
trac5704 | ||
readme.txt | ||
test-clang-import.py | ||
test-helloworld.py | ||
test-inline-suppress.py | ||
test-more-projects.py | ||
test-other.py | ||
test-performance.py | ||
test-proj2.py | ||
test-project.py | ||
test-qml.py | ||
test-suppress-syntaxError.py | ||
testutils.py |
readme.txt
Systemtesting of Cppcheck CLI on some projects addons base path exclude folders importing projects * visual studio * compile database - different generators bear/cmake/.. - different platforms suppressions Different paths: * relative * absolute