| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Not generally a fan of that approach given that we would lose the categorization that debuglog() provides. e.g. debuglog('test') vs debuglog('http2'). |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
14:57:47 not ok 21 - /home/iojs/build/workspace/node-test-linter/test/doctool/test-doctool-versions.js 14:57:47 --- 14:57:47 message: Only use 'test' as debuglog value inside of the tests folder. 14:57:47 severity: error 14:57:47 data: 14:57:47 line: 32 14:57:47 column: 1 14:57:47 ruleId: no-restricted-syntax 14:57:47 messages: 14:57:47 - message: Only use 'test' as debuglog value inside of the tests folder. 14:57:47 severity: error 14:57:47 data: 14:57:47 line: 35 14:57:47 column: 1 14:57:47 ruleId: no-restricted-syntax 14:57:47 - message: Only use 'test' as debuglog value inside of the tests folder. 14:57:47 severity: error 14:57:47 data: 14:57:47 line: 36 14:57:47 column: 1 14:57:47 ruleId: no-restricted-syntax 14:57:47 - message: Only use 'test' as debuglog value inside of the tests folder. 14:57:47 severity: error 14:57:47 data: 14:57:47 line: 41 14:57:47 column: 1 14:57:47 ruleId: no-restricted-syntax 14:57:47 ... 14:57:47 not ok 12 - /home/iojs/build/workspace/node-test-linter/test/parallel/test-macos-signed-deps.js 14:57:47 --- 14:57:47 message: Only use 'test' as debuglog value inside of the tests folder. 14:57:47 severity: error 14:57:47 data: 14:57:47 line: 24 14:57:47 column: 3 14:57:47 ruleId: no-restricted-syntax 14:57:47 messages: 14:57:47 - message: Only use 'test' as debuglog value inside of the tests folder. 14:57:47 severity: error 14:57:47 data: 14:57:47 line: 26 14:57:47 column: 3 14:57:47 ruleId: no-restricted-syntax 14:57:47 - message: Only use 'test' as debuglog value inside of the tests folder. 14:57:47 severity: error 14:57:47 data: 14:57:47 line: 27 14:57:47 column: 3 14:57:47 ruleId: no-restricted-syntax 14:57:47 ... 14:57:47 + exit 1 14:57:47 Build step 'Execute shell' marked build as failure |
Sorry, something went wrong.
This makes sure all usages of `util.debuglog()` must contain the string 'test' as argument.
These rules only apply for the test folder and will already be checked for.
Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
|
@targos thanks, I updated the rule only to match variable assignments from now on.
I think that would be fine. Using debuglog(foo) would allow a more fine grained way of debugging while console.debug() would at least follow the actual "debug" intention the console name embodies. |
Sorry, something went wrong.
|
Note: I do not run a full CI on this, since the eslint rules are already run by our github actions and there's no other change involved. |
Sorry, something went wrong.
To whoever lands this: Please do a make lint-js before pushing to upstream master to check that something hasn't landed between the last GitHub Actions run and now that would get flagged by this new rule. (I'm pretty sure #33329 will not violate this rule, but that's an example of something that might if it lands before this gets merged.) |
Sorry, something went wrong.
This makes sure all usages of `util.debuglog()` must contain the string 'test' as argument. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
These rules only apply for the test folder and will already be checked for. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This makes sure all usages of `util.debuglog()` must contain the string 'test' as argument. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
These rules only apply for the test folder and will already be checked for. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This makes sure all usages of `util.debuglog()` must contain the string 'test' as argument. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
These rules only apply for the test folder and will already be checked for. PR-URL: #32161 Refs: #32078 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
| Back | FazBrowse Home | New Git URL |
Please have a look at the commit messages for details.
Refs: #32078
Checklist