Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update cpplint to 1.6.1 #53960

Closed
wants to merge 1 commit into from

Conversation

RedYetiDev
Copy link
Member

@RedYetiDev RedYetiDev commented Jul 19, 2024

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.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. meta Issues and PRs related to the general management of the project. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. labels Jul 19, 2024
@RedYetiDev
Copy link
Member Author

CC @nodejs/linting @nodejs/cpp-reviewers

@lpinca
Copy link
Member

lpinca commented Jul 20, 2024

We float some patches, see https://github.com/nodejs/node/commits/main/tools/cpplint.py. Also, it seems we are already using version 1.6.1, see 40d8b36.

Copy link
Member

@lpinca lpinca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RedYetiDev
Copy link
Member Author

Haha! You are right, we are already on v1.6.1. Just hosted locally. Closing. sorry for the noise

@RedYetiDev RedYetiDev closed this Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. meta Issues and PRs related to the general management of the project. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

readability/pointer is inaccurate
4 participants