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:
-
Source Update:
cpplint
is now retrieved from PyPI instead of being stored locally. -
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:
- Header for the current file (
<filename>.h
) - C headers
- C++ headers
- All other headers
This check can be re-enabled if needed.