0ad/source/tools/lint
Ralph Sennhauser 5445aaaf59
Allow no files for copyright checks
If a commit just removes files for cleanup purpose for example the list
of files to check would be empty. Therefore allow no files as arguments
for use in CI.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-18 20:18:08 +02:00
..
copyright Allow no files for copyright checks 2025-05-18 20:18:08 +02:00
cppcheck Add cppcheck workflow 2025-03-30 18:06:01 +02:00
jenkinsfiles Add a Jenkinsfile linter 2025-05-08 19:50:21 +02:00
lint.sh Add a Jenkinsfile linter 2025-05-08 19:50:21 +02:00
README.md Add linter to check for copyright year 2025-04-28 16:14:34 +02:00

Linters

Linters for use in CI or by developers. Also providing configurations for IDEs.

cppcheck

suppression-list

The suppression list is ideally empty, restricting to file scope is preferred.

The format for an error suppression is one of: [error id]:[filename]:[line] [error id]:[filename2] [error id]

libraries

Adding library cfg's for other deps could improve cppchecks ability to find issues.

A linter for checking copyright dates in file headers are up to date.