Uh oh!
There was an error while loading. Please reload this page.
Brace style linting - #7630
Conversation
This change is in preparation for lint-enforced brace style.
This change is in preparation for a lint rule to enforce brace style.
This change is in preparation for lint enforcement of brace style.
Enable `brace-style` in ESLint. Ref: nodejs#7094 (comment)
Trott
commented
Jul 9, 2016
mscdex
commented
Jul 9, 2016
LGTM |
Trott
commented
Jul 9, 2016
Only failure on CI is a build failure on a Raspberry Pi device. |
targos
commented
Jul 9, 2016
LGTM |
1 similar comment
bnoordhuis
commented
Jul 9, 2016
LGTM |
| return function() { | ||
| return stream[method].apply(stream, arguments); | ||
| }; | ||
| }(i); |
There was a problem hiding this comment.
Unrelated to this change, but I think one level of function wrapping can be removed here:
this[i]=function(method){returnstream[method].apply(stream,arguments);}(i);silverwind
commented
Jul 9, 2016
LGTM |
Trott
commented
Jul 11, 2016
@Fishrock123 Should I treat your "confused" reaction merely as an expression of mild disappointment? Or should I treat it as a "-1, do not do this without successfully persuading me first that this is A Good Thing"? (Either way, would I be correct to guess that your concerns are around churn / whitespace-only changes?) |
trevnorris
commented
Jul 11, 2016
Much thanks for taking care of this. LGTM. |
Trott
commented
Jul 12, 2016
I'll land this after another 12 hours or so unless someone objects. |
rvagg
commented
Jul 12, 2016
🎆 lgtm |
This change is in preparation for lint-enforced brace style. PR-URL: nodejs#7630 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
Enable `brace-style` in ESLint. Ref: nodejs#7094 (comment) PR-URL: nodejs#7630 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
Trott
commented
Jul 12, 2016
This change is in preparation for lint-enforced brace style. PR-URL: #7630 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
Enable `brace-style` in ESLint. Ref: #7094 (comment) PR-URL: #7630 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
MylesBorins
commented
Aug 30, 2016
@Trott would you be willing to backport? |
Trott
commented
Aug 31, 2016
@thealphanerd Backported in #8348 |
Checklist
make -j4 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
tools lib benchmark test
Description of change
Enable
brace-stylein ESLint.Ref: #7094 (comment)
/cc @trevnorris@silverwind