Add option to skip all lints on specific sources
Changes
-
Code duplication was reduced for the generation of code check rules in both Ninja and Makefile. Some code was moved to
cmCommonTargetGenerator. -
Ninja was generating code check rules per language. It was changed to generation for per source file.
-
The
SKIP_LINTINGsource property was added to disable code check for desired source files. TheSKIP_LINTINGincludescpplint,clang-tidy,cppcheck, andinclude-what-you-use. IfSKIP_LINTINGis set on a source file, the tools mentioned above will not be run on that source file. -
SKIP_LINTINGis set for files generated byAutogen -
Const Correctness improved
Fixes: #19772 (closed)
Topic-rename: skip-linting
Edited by Orkun Tokdemir