Skip to content

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_LINTING source property was added to disable code check for desired source files. The SKIP_LINTINGincludes cpplint, clang-tidy, cppcheck, and include-what-you-use. If SKIP_LINTING is set on a source file, the tools mentioned above will not be run on that source file.

  • SKIP_LINTING is set for files generated by Autogen

  • Const Correctness improved

Fixes: #19772 (closed)
Topic-rename: skip-linting

Edited by Orkun Tokdemir

Merge request reports