Skip to content

build: update cpplint to 1.6.1

Fixes #53955

This PR updates cpplint to version 1.6.1. The previous version used in this project had not been updated for over seven years and lacked the latest utilities. The following changes have been made:

  1. Source Update: cpplint is now retrieved from PyPI instead of being stored locally.
  2. License Management: The license generation for tools/cpplint.py has been removed because the file itself was removed. This is what has been done with other linters (e.g., Python, YAML).

Additionally, this version introduces the build/include_order check, which is currently disabled via CPPLINT.cfg (formerly .cpplint). This check enforces the following import order:

  1. Header for the current file (<filename>.h)
  2. C headers
  3. C++ headers
  4. All other headers

This check can be re-enabled if needed.

Merge request reports

Loading