FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: eslint rule making common.js mandatory by Trott · Pull Request #3157 · nodejs/node · GitHub

/ node Public

test: eslint rule making common.js mandatory - #3157

Closed
Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:eslint-require-common
Closed

test: eslint rule making common.js mandatory#3157
Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:eslint-require-common

Conversation

Trott commented Oct 2, 2015

Copy link
Copy Markdown
Member

test/common.js contains code that detects global variable leaks.

This eslint rule checks that a module named common is loaded. It is
only applicable to files in the test directory. Tests that intentionally
leak variables can opt out with an eslint-disable comment.

Trott added the test Issues and PRs related to the tests. label Oct 2, 2015

Trott commented Oct 2, 2015

Copy link
Copy Markdown
Member Author

/cc @brendanashworth @Fishrock123

Trott commented Oct 2, 2015

Copy link
Copy Markdown
Member Author

rvagg commented Oct 2, 2015

Copy link
Copy Markdown
Member

lgtm tho I'd suggest 2 commits here, one for eslint and one for the changes in test/

Trott force-pushed the eslint-require-common branch from 6492f8b to bedba46 Compare October 2, 2015 04:31

Trott commented Oct 2, 2015

Copy link
Copy Markdown
Member Author

@rvagg OK, I split it into two commits. (Let me know if I should split them into two PRs as well. Otherwise, I'll just apply the same commit log metadata to each commit before merging, assuming no one expresses disapproval of this PR in the next 24 hours or so.)

Trott force-pushed the eslint-require-common branch from bedba46 to 01ddc83 Compare October 2, 2015 04:39

rvagg commented Oct 2, 2015

Copy link
Copy Markdown
Member

single PR is fine

cjihrig commented Oct 2, 2015

Copy link
Copy Markdown
Contributor

LGTM with one small comment.

Trott force-pushed the eslint-require-common branch from 01ddc83 to 14fbbd4 Compare October 2, 2015 14:41

Trott commented Oct 2, 2015

Copy link
Copy Markdown
Member Author

@cjihrig Rebased and pushed with the commented-out code removed. Thanks for catching that.

Copy link
Copy Markdown
Contributor

If it's an external module please put in a comment with that that points to the upstream repo. I think that's probably the best way. Still needs the EOF newline fixed though. :)

Trott commented Oct 3, 2015

Copy link
Copy Markdown
Member Author

@Fishrock123 It's not in an external repo yet, but I'm trying: eslint/eslint#4024

Trott force-pushed the eslint-require-common branch from 9df2c4c to 6d25723 Compare October 3, 2015 20:47

Copy link
Copy Markdown
Contributor

@Trott if it's not external can you please make it conform to our styles?

Copy link
Copy Markdown
Contributor

(and I guess lint itself if it doesn't already)

Trott commented Oct 5, 2015

Copy link
Copy Markdown
Member Author

@Fishrock123 Cool. Linting of eslint-rules dir submitted as #3195. Style here changed so it will pass that linting.

Trott added 2 commits October 6, 2015 11:23
common.js contains code that detects leaked variables.

In preparation for an eslint rule that will enforce loading common.js in
test files, load it everywhere it can be loaded and use an
`eslint-disable` comment for files that intentionally leak.
test/common.js contains code that detects global variable leaks.

This eslint rule checks that a module named `common` is loaded. It is
only applicable to files in the test directory. Tests that intentionally
leak variables can opt out with an eslint-disable comment.
Trott force-pushed the eslint-require-common branch from db84305 to 34fc281 Compare October 6, 2015 18:23

Trott commented Oct 6, 2015

Copy link
Copy Markdown
Member Author

One final CI run before landing: https://ci.nodejs.org/job/node-test-pull-request/431/

Assuming no red flags in the CI and no objections from anyone here, I'll land in the next few hours.

Trott added a commit that referenced this pull request Oct 6, 2015
common.js contains code that detects leaked variables.

In preparation for an eslint rule that will enforce loading common.js in
test files, load it everywhere it can be loaded and use an
`eslint-disable` comment for files that intentionally leak.

PR-URL: #3157
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Trott added a commit that referenced this pull request Oct 6, 2015
test/common.js contains code that detects global variable leaks.

This eslint rule checks that a module named `common` is loaded. It is
only applicable to files in the test directory. Tests that intentionally
leak variables can opt out with an eslint-disable comment.

PR-URL: #3157
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

Trott commented Oct 6, 2015

Copy link
Copy Markdown
Member Author

Landed in c78091d and 3de353b

Trott closed this Oct 6, 2015
jasnell mentioned this pull request Oct 8, 2015
29 tasks
Trott added a commit that referenced this pull request Oct 8, 2015
common.js contains code that detects leaked variables.

In preparation for an eslint rule that will enforce loading common.js in
test files, load it everywhere it can be loaded and use an
`eslint-disable` comment for files that intentionally leak.

PR-URL: #3157
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Trott added a commit that referenced this pull request Oct 8, 2015
test/common.js contains code that detects global variable leaks.

This eslint rule checks that a module named `common` is loaded. It is
only applicable to files in the test directory. Tests that intentionally
leak variables can opt out with an eslint-disable comment.

PR-URL: #3157
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Trott deleted the eslint-require-common branch January 13, 2022 22:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL