aboutsummaryrefslogtreecommitdiff
path: root/lib/checksrc.pl
AgeCommit message (Collapse)Author
2015-03-17checksrc: use space before paren in "return (expr);"Daniel Stenberg
2013-03-07checksrc: ban unsafe functionsDaniel Stenberg
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.
2011-09-07checksrc: detect "}else" uses as wellDaniel Stenberg
2011-08-05checksrc.pl: add quotes to varYang Tse
2011-08-05keep a single copy of config-win32.h in version control repository - followupYang Tse
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-07-04checksrc: detect open brace without spaceDaniel Stenberg
We use "if(condition) {" with a space between the close paren and the open brace.
2011-05-26Make checksrc.pl work on more out-of-tree buildsYang Tse
Source files given with relative paths do not have the -D directory specifier prepended.
2011-05-16checksrc: trailing whitespace detection fixDaniel Stenberg
2011-04-27Make checksrc.pl work on out-of-tree buildsDan Fandrich
Source files given with absolute paths do not have the -D directory specifier prepended.
2011-04-27checksrc: add -W to allow a file to be whitelistedDaniel Stenberg
Useful when a known file just doesn't comply and there's no intention to make it do so.
2011-04-27checksrc: scan many files, more checksDaniel Stenberg
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-27checksrc: exit error code if warnings or errorsDaniel Stenberg
2011-04-27source cleanup: unify look, style and indent levelsDaniel Stenberg
By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.