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

tools: remove readability/fn_size rule #54663

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

RafaelGSS
Copy link
Member

Due to #53927 I had to update the v22.x-staging branch to include a // NOLINT(readability/fn_size) https://github.com/nodejs/node/blob/v22.x-staging/src/node_options.cc#L890

I'm questioning whether having this rule is really necessary or beneficial. This lint didn't fail on main (yet) because we have more code on this specific function in v22.x-staging. So, this will likely appear in a PR soon, and I think that dropping this rule instead of adding a NOLINT comment is a much better option.

@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Aug 30, 2024
@RedYetiDev
Copy link
Member

FWIW it's already appearing in PRs adding to the CLI flags.

@RafaelGSS
Copy link
Member Author

ping @nodejs/build @nodejs/linting

@anonrig anonrig added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 31, 2024
@RedYetiDev RedYetiDev added the c++ Issues and PRs that require attention from people who are familiar with C++. label Aug 31, 2024
@BoscoDomingo
Copy link
Contributor

I can attest. Got it in #53060

@@ -325,7 +325,6 @@
'readability/casting',
'readability/check',
'readability/constructors',
'readability/fn_size',
Copy link
Member

Choose a reason for hiding this comment

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

IMO this should be commented out with a note as to why?

@RafaelGSS RafaelGSS added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 1, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 1, 2024
@nodejs-github-bot nodejs-github-bot merged commit 3d954dc into nodejs:main Sep 1, 2024
31 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 3d954dc

@BoscoDomingo
Copy link
Contributor

Still getting the error after rebasing in #53060. It's blocking that PR from landing. @RafaelGSS May something have been missed by any chance?

@RafaelGSS
Copy link
Member Author

Weird. Does it fail locally?

@BoscoDomingo
Copy link
Contributor

BoscoDomingo commented Sep 3, 2024

@RafaelGSS Yup

Edit: currently running a ./configure && make just in case, but I reckon they don't have much to do with this. Better safe than sorry

RafaelGSS added a commit to RafaelGSS/node that referenced this pull request Sep 3, 2024
@RafaelGSS
Copy link
Member Author

See: #54744

@BoscoDomingo
Copy link
Contributor

See: #54744

Nice! Thanks for the quick response, that should do it👍🏼

aduh95 pushed a commit that referenced this pull request Sep 12, 2024
PR-URL: #54663
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@RafaelGSS RafaelGSS mentioned this pull request Sep 16, 2024
targos pushed a commit that referenced this pull request Sep 22, 2024
PR-URL: #54663
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants