Daniel Stenberg
0037eb5805
checksrc: introduce a whitelisting concept
2015-03-17 13:57:37 +01:00
Daniel Stenberg
9395999543
checksrc: use space after comma
2015-03-17 13:57:37 +01:00
Daniel Stenberg
a6b8fe2a5f
checksrc: use space before paren in "return (expr);"
2015-03-17 13:05:01 +01:00
Daniel Stenberg
7f963a19ec
checksrc: ban unsafe functions
...
The list of unsafe functions currently consists of sprintf, vsprintf,
strcat, strncat and gets.
Subsequently, some existing code needed updating to avoid warnings on
this.
2013-03-07 11:08:05 +01:00
Daniel Stenberg
58a7c51362
checksrc: detect "}else" uses as well
2011-09-07 22:45:43 +02:00
Yang Tse
40e1d03c5d
checksrc.pl: add quotes to var
2011-08-05 21:24:59 +02:00
Yang Tse
c95fec5e5b
keep a single copy of config-win32.h in version control repository - followup
...
Allow configure builds to generate src/config-win32.h
Skip checksrc on src/config-win32.h contents already checked at lib/config-win32.h
Allow multiple -W in checksrc.pl
2011-08-05 21:01:39 +02:00
Daniel Stenberg
dc97475ded
checksrc: detect open brace without space
...
We use "if(condition) {" with a space between the close paren and the
open brace.
2011-07-04 22:08:14 +02:00
Yang Tse
f461c6e61d
Make checksrc.pl work on more out-of-tree builds
...
Source files given with relative paths do not have the
-D directory specifier prepended.
2011-05-26 19:17:10 +02:00
Daniel Stenberg
bb7ff942d3
checksrc: trailing whitespace detection fix
2011-05-16 15:21:32 +02:00
Dan Fandrich
cbd98b2c28
Make checksrc.pl work on out-of-tree builds
...
Source files given with absolute paths do not have the
-D directory specifier prepended.
2011-04-27 12:42:15 -07:00
Daniel Stenberg
6a6981503e
checksrc: add -W to allow a file to be whitelisted
...
Useful when a known file just doesn't comply and there's no intention to
make it do so.
2011-04-27 09:09:35 +02:00
Daniel Stenberg
7ddcc8fea4
checksrc: scan many files, more checks
...
It now scans multiple files and outputs an error+warning count summary
at the end in case at least one was detected.
-D can be used to specify in which dir the files are located
The script now scans for conditions that starts with a space for
if/while/for lines.
2011-04-27 09:09:35 +02:00
Daniel Stenberg
92f722017c
checksrc: exit error code if warnings or errors
2011-04-27 09:09:35 +02:00
Daniel Stenberg
b903186fa0
source cleanup: unify look, style and indent levels
...
By the use of a the new lib/checksrc.pl script that checks that our
basic source style rules are followed.
2011-04-27 09:09:35 +02:00