orbitcowboy
10c7c70970
Activated 'make validateRules' and improved rule XML file parsing. Now, it optionally accepts '<rules>...</rules>' tags to make xmllint happy.
2022-06-22 00:03:18 +02:00
orbitcowboy
78804ca18c
Remove <rules>...</rules>, added by 52aab1e80c
which broke internal checking. In addition another internal rule was added, following up the changes from https://github.com/danmar/cppcheck/pull/4182/files
2022-06-21 16:10:50 +02:00
amai2012
70059e713a
Format rules files as well
2019-09-26 19:58:39 +02:00
Wolfgang Stöggl
52aab1e80c
Fix xml syntax in token-matching.xml ( #2197 )
...
The file token-matching.xml contains multiple rules
- Add <rules></rules> xml tags
- Fixes the following xmllint error:
./rules/token-matching.xml:10: parser error :
Extra content at the end of the document
<rule version="1">
^
2019-09-21 20:41:45 +02:00
Markus Elfring
bf5f9bd9cb
Fix a typo in a message for a rule ( #1181 )
...
Adjust a word in the summary for this rule.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2018-04-19 22:33:14 +02:00
orbitcowboy
0e575ce12c
Modernize: make use of 'nullptr' and added a rule-file for finding non-nullptr (zero) initializations.
2017-07-28 15:20:43 +02:00
orbitcowboy
9d066020cb
Added empty-catch-block rule file.
2016-08-23 23:40:54 +02:00
Daniel Marjamäki
8285510996
Rules: Make it possible to write rules that check #define macros
2013-07-12 16:09:00 +02:00
XhmikosR
9b5c245899
tabs to spaces, remove trailing spaces and extra empty lines at the end of files
2012-09-29 13:49:16 +02:00
Daniel Marjamäki
57ebed20c4
Added rule files based on rules suggested by jglathe
2012-07-10 21:18:59 +02:00
Raphael Geissert
43b0e655bb
Add a few more rules
2011-02-02 20:08:03 -06:00
Raphael Geissert
2b77e3591e
Add rules for tokAt(0) and strAt(0), suggested by reif
2011-02-02 18:58:54 -06:00
Raphael Geissert
3c76dd2e3f
Yet another tweak to the regex, use ungreedy mode
2011-02-02 13:27:02 -06:00
Raphael Geissert
a9681ad4d1
Also detect useless spacing at the end of *Match calls
2011-02-02 13:27:01 -06:00
Raphael Geissert
9075ca59ca
Introduce some rules for checking cppcheck's use of Token::*Match
2011-02-02 13:27:00 -06:00