Skip to content

lint: change require-buffer rule message - #19701

Closed
devsnek wants to merge 2 commits into
nodejs:masterfrom
devsnek:update-eslint-require-buffer-message
Closed

lint: change require-buffer rule message#19701
devsnek wants to merge 2 commits into
nodejs:masterfrom
devsnek:update-eslint-require-buffer-message

Conversation

@devsnek

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

@nodejs-github-botnodejs-github-bot added the tools Issues and PRs related to the tools directory. label Mar 30, 2018
@devsnek

Copy link
Copy Markdown
MemberAuthor

@vsemozhetbytvsemozhetbyt added the buffer Issues and PRs related to the buffer subsystem. label Mar 30, 2018
function flagIt(reference) {
const msg = 'Use const Buffer = require(\'buffer\').Buffer; ' +
'at the beginning of this file';
const msg = `Use ${BUFFER_REQUIRE} at the beginning of this file`;

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.

Nit: BUFFER_REQUIRE adds a new line, is this wanted?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

fantastic catch, thank you :)

@ChALkeRChALkeR 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, but this needs a CI-lite re-run prior to landing.

@devsnek

Copy link
Copy Markdown
MemberAuthor

@devsnek

Copy link
Copy Markdown
MemberAuthor

landed in 5579118

@devsnekdevsnek closed this Apr 3, 2018
@devsnek
devsnek deleted the update-eslint-require-buffer-message branch April 3, 2018 04:13
devsnek added a commit that referenced this pull request Apr 3, 2018
PR-URL: #19701
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Apr 3, 2018
PR-URL: #19701
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@targostargos mentioned this pull request Apr 4, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bufferIssues and PRs related to the buffer subsystem.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@devsnek@ChALkeR@jasnell@lpinca@cjihrig@tniessen@vsemozhetbyt@nodejs-github-bot