Skip to content

tools: make argument alignment linting more strict - #8642

Merged
Trott merged 2 commits into
nodejs:masterfrom
Trott:align-moar
Sep 20, 2016
Merged

tools: make argument alignment linting more strict#8642
Trott merged 2 commits into
nodejs:masterfrom
Trott:align-moar

Conversation

@Trott

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

tools test lib

Description of change

A few nits in recent PR comments suggest that we can have slightly more
strict linting for argument alignment in multiline function calls. This
enables the existing linting requirements to apply when one or more of
the arguments themselves are function calls. Previously, that situation
had been excluded from linting.

@TrottTrott added the tools Issues and PRs related to the tools directory. label Sep 18, 2016
@nodejs-github-botnodejs-github-bot added repl Issues and PRs related to the REPL subsystem. tools Issues and PRs related to the tools directory. labels Sep 18, 2016
@Trott

Copy link
Copy Markdown
MemberAuthor

@Fishrock123

Copy link
Copy Markdown
Contributor

Hmmm, I remember this being a lot worse when we tried it before? (I think we tried it before?)

@not-an-aardvarknot-an-aardvark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@addaleaxaddaleax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, and thank you!

@addaleaxaddaleax removed the repl Issues and PRs related to the REPL subsystem. label Sep 18, 2016

@cjihrigcjihrig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@imyllerimyller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@fhinkel

Copy link
Copy Markdown
Member

LGTM.

An upcoming custom lint rule will provide slightly more strict
enforcement of argument alignment for multiline function calls. Adjust
existing code to conform.
PR-URL: nodejs#8642
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
A few nits in recent PR comments suggest that we can have slightly more
strict linting for argument alignment in multiline function calls. This
enables the existing linting requirements to apply when one or more of
the arguments themselves are function calls. Previously, that situation
had been excluded from linting.
Refs: nodejs#8628 (comment)
PR-URL: nodejs#8642
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
@Trott
Trott merged commit f785b36 into nodejs:masterSep 20, 2016
@Trott

Copy link
Copy Markdown
MemberAuthor

Landed in 4316f4d and f785b36

@MylesBorins

Copy link
Copy Markdown
Contributor

@Trott I'm going to stop landing these changes to the linter in v4.x

Please feel free to make a mass PR to get the two line in sync

@Trott

Trott commented Oct 6, 2016

Copy link
Copy Markdown
MemberAuthor

@thealphanerd I'm OK with the lint rules in v4.x being more lax than in master, so that's OK with me. If you'd prefer it land, I can try to backport. But if it's not high value to you, then I'm content to leave it out.

@MylesBorins

Copy link
Copy Markdown
Contributor

I say leave it

Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
An upcoming custom lint rule will provide slightly more strict
enforcement of argument alignment for multiline function calls. Adjust
existing code to conform.
PR-URL: #8642
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
A few nits in recent PR comments suggest that we can have slightly more
strict linting for argument alignment in multiline function calls. This
enables the existing linting requirements to apply when one or more of
the arguments themselves are function calls. Previously, that situation
had been excluded from linting.
Refs: #8628 (comment)
PR-URL: #8642
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
@Trott
Trott deleted the align-moar branch January 13, 2022 22:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@Trott@Fishrock123@fhinkel@MylesBorins@addaleax@imyller@cjihrig@not-an-aardvark@nodejs-github-bot