fuzzelhjb
f36d671bc5
add CERT STR03-C check ( #1898 )
...
* add CERT STR03-C check
* fix cert test
2019-06-24 18:41:43 +02:00
Daniel Marjamäki
bd59999fd0
cert.py: Use cppcheck.getArguments instead of local implementation
2019-06-23 14:05:24 +02:00
fuzzelhjb
8fcfe0ceb0
add CERT STR07-C check
2019-06-23 13:59:24 +02:00
fuzzelhjb
5e3da9e82a
add CERT STR05-C check ( #1899 )
...
* add CERT STR05-C check
* update check
2019-06-17 20:42:23 +02:00
Daniel Marjamäki
97157046f7
addons: /reportErrorCli/reportError/
2019-04-14 08:54:53 +02:00
Daniel Marjamäki
bf5ad56dba
cert.py: Removed CLI
2019-04-10 18:09:27 +02:00
Daniel Marjamäki
f2889d5c82
Try to unify addon output
2019-04-09 20:36:24 +02:00
Daniel Marjamäki
bf9006737a
Addons: Adding support in Cppcheck CLI to execute addons
2019-04-07 17:01:59 +02:00
Daniel Marjamäki
25a3aeef86
cert.py: another fix for valueflow
2018-10-29 01:39:52 +01:00
Daniel Marjamäki
b5241ecb80
cert.py: more robust handling of values
2018-10-28 20:55:15 +01:00
Sebastian
dce3281766
addons/cert.py: Add MSC30-C: Do not use rand() ( #1348 )
...
Add function isStandardFunction() that checks if the given function is a standard function.
Only when this function returns true for the currently checked rand() tokens it is reported as a violation.
Tests added for C and C++.
2018-08-24 15:05:50 +02:00
Oliver Stöneberg
13cf982b77
some small *.py script cleanup ( #1328 )
...
* added CLion project folder to .gitignore
* adjusted project name in CMakeLists.txt
* avoid warning when compiling "Debug" with Visual Studio via CMake
There was a GCC-style compiler flag in the common flags in compileroptions.cmake which caused the following warning:
cl : Command line warning D9002 : ignoring unknown option '-O0'
* compileroptions.cmake: restored original formatting
* some small *.py script cleanups
2018-08-05 20:36:21 +02:00
Daniel Marjamäki
2f18fbabaa
Addons: Renamed classStart/classEnd to match SymbolDatabase
2018-04-28 23:06:54 +02:00
Daniel Marjamäki
8f21ba91e3
cert.py: Fix FP
2018-04-12 20:23:50 +02:00
Daniel Marjamäki
97b17d50aa
cert.py: fixed fp in exp05 for non-pointer casts
2018-04-03 15:12:01 +02:00
Daniel Marjamäki
2db7c6e1a3
cert.py: Add rule EXP-05: do not cast away const
2018-04-03 13:35:19 +02:00
amai
ed25e21929
Set executable bit for addons/ python scripts
2018-03-20 20:54:59 +01:00
amai2012
449dcc15e8
Add links to external references
2018-03-16 08:12:39 +01:00
Daniel Marjamäki
8eae9cdd60
cert.py: Added testcases for EXP42 and fixed the code a little
2018-01-23 17:18:47 +01:00
Daniel Marjamäki
438b1ccb91
cert.py: update cert-INT31-C checker
2017-10-16 13:35:07 +02:00
Daniel Marjamäki
8a8339274b
cert.py: add testfile
2017-10-15 16:18:29 +02:00
Daniel Marjamäki
56ceb5a58c
cert.py: Added INT-31-C check, ensure that integer conversions do not result in lost or misinterpreted data
2017-10-14 22:24:24 +02:00
Daniel Marjamäki
b7af13ce63
cert.py: reformat output again
2017-08-15 21:44:43 +02:00
Daniel Marjamäki
256adfbcb5
cert.py: Reformatting output
2017-08-15 20:34:54 +02:00
Ayaz Salikhov
3dc4188292
Improve Python code
2017-06-05 13:23:00 +02:00
Ayaz Salikhov
2dd6168258
Improve Python code
2017-06-04 22:51:48 +02:00
Albert ARIBAUD (3ADEV)
e7fdb1c825
Fix multiple config dumps
...
With multiple configurations, option --dump only dumps
the last configuration.
Fix it to dump every configuration.
Also update all Python addons so that they can handle
multiple-configuration dumps.
Additionally run autopep8 on addons/*.py.
The results of 'make test' before and after applying
this commit are identical.
2015-12-14 18:20:35 +01:00
Daniel Marjamäki
4464d309fa
cert.py: remove messages for reading struct padding data. in the EXP-42 warning describe how it can be fixed
2015-08-29 08:25:48 +02:00
Daniel Marjamäki
498c920180
addons/cert.py: better handling of structs. read pragmas in the file.
2015-08-28 18:07:12 +02:00
XhmikosR
7d0075357e
PEP8 fixes.
...
[ci skip]
2015-08-21 11:59:52 +03:00
Daniel Marjamäki
71eb96b8d3
Addons: Added simple addon checking for CERT rule EXP42-C. Don't compare struct padding data.
2015-08-19 10:21:25 +02:00
Daniel Marjamäki
abbe11f3b7
Addons: Added cert.py
2015-08-18 16:14:53 +02:00