if (error) {
continue;
}
post
If it works, it works
Eh it's Javascript. Anything goes
Yeah, array.length is mutable in javascript. I'm surprised it caught on.
If i can just suppress the warnings which need to be fixed till morning in my buggy code, anything goes!
Warnings? We’ll come back and address those later. Maybe once we’re feature complete. Or maybe shortly after that.
Meanwhile in another universe one of my biggest win was to introduce this line in our PR validation pipeline.
eslint . --max-warnings 0
In a codebase with a lot of warnings is even better for me to add a disable comments for all the existing warning and then not allow any new one in.
And then each time a part of the code needs to be touched the existing warning there should be solved too.
Actually fixing warnings is for noobs
I, too, place 2> /dev/null after every line
Yes, but 2>&1 > /dev/null is the real hero.
No, > /dev/null 2>&1 is. If try your example but with file instead null, stderr content not in file.
Because x>y not redirect x to y, but duplicate y and set x to y-duplicate. See bash manpage REDIRECTION (your example in that section for what not work).
As i understand, your example set 2 to what 1 is, then set 1 to null. Now 2 not null, but what 1 before.
So, the joke is that it should hide all output.
edit: works better when used together with StackOverflow.comment.enabled = false;
-ErrorActionPreference SilentlyContinue
I don't get it. This isn't funny. I wouldn't approve it in merge request. Most wouldn't.

all 49 comments