Skip to content

tools,benchmark: increase lint compliance - #5429

Closed
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:eslint-benchmark
Closed

tools,benchmark: increase lint compliance#5429
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:eslint-benchmark

Conversation

@Trott

Copy link
Copy Markdown
Member

In the hopes of soon having the benchmark code linted, this change
groups all the likely non-controversial lint-compliance changes such as
indentation, semi-colon usage, and single-vs.-double quotation marks.

Other lint rules may have subtle performance implications in the V8
currently shipped with Node.js. Those changes will require more careful
review and will be in a separate change.

@TrottTrott added benchmark Issues and PRs related to the benchmark subsystem. tools Issues and PRs related to the tools directory. lts-watch-v4.x labels Feb 25, 2016
@TrottTrott changed the title tool,benchmark: increase lint compliancetools,benchmark: increase lint complianceFeb 25, 2016
@silverwind

Copy link
Copy Markdown
Contributor

LGTM

@Trott

Copy link
Copy Markdown
MemberAuthor

@nodejs/benchmarking @mscdex

In the hopes of soon having the benchmark code linted, this change
groups all the likely non-controversial lint-compliance changes such as
indentation, semi-colon usage, and single-vs.-double quotation marks.
Other lint rules may have subtle performance implications in the V8
currently shipped with Node.js. Those changes will require more careful
review and will be in a separate change.
@Trott

Copy link
Copy Markdown
MemberAuthor

" buff." + fn + "(0, " + JSON.stringify(noAssert) + ");",
"}"
].join("\n"));
'for (var i = 0; i !== ' + len + '; i++) {',

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.

Couldn't we use template strings for this kind of thing now?

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.

@mscdex I wanted to be conservative in the change set to keep the diff manageable. And I wanted to avoid anything that might foster any discussion whatsoever about potential performance issues. If you'd prefer I go through and convert to template strings where it seems to make sense, I can do that. If left to my own devices, I'd prefer to either not do it or put that in as a separate independent pull request.

@mscdex

Copy link
Copy Markdown
Contributor

LGTM

Trott added a commit to Trott/io.js that referenced this pull request Feb 28, 2016
In the hopes of soon having the benchmark code linted, this change
groups all the likely non-controversial lint-compliance changes such as
indentation, semi-colon usage, and single-vs.-double quotation marks.
Other lint rules may have subtle performance implications in the V8
currently shipped with Node.js. Those changes will require more careful
review and will be in a separate change.
PR-URL: nodejs#5429
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Brian White <mscdex@mscdex.net>
@Trott

Copy link
Copy Markdown
MemberAuthor

Landed in dcfda10

@TrottTrott closed this Feb 28, 2016
@Fishrock123Fishrock123 mentioned this pull request Mar 1, 2016
5 tasks
Fishrock123 pushed a commit that referenced this pull request Mar 2, 2016
In the hopes of soon having the benchmark code linted, this change
groups all the likely non-controversial lint-compliance changes such as
indentation, semi-colon usage, and single-vs.-double quotation marks.
Other lint rules may have subtle performance implications in the V8
currently shipped with Node.js. Those changes will require more careful
review and will be in a separate change.
PR-URL: #5429
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Brian White <mscdex@mscdex.net>
@MylesBorins

Copy link
Copy Markdown
Contributor

@Trott likely this should be merged in with the various benchmark changes you have been doing for a single backport PR

@Trott

Copy link
Copy Markdown
MemberAuthor

@thealphanerd If it's all the same to you, I think it would be easier to do them as one-to-one mappings to backport PRs. This one maps to #5770

@MylesBorins

Copy link
Copy Markdown
Contributor

works for me... thanks!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarkIssues and PRs related to the benchmark subsystem.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Trott@silverwind@mscdex@MylesBorins