-
Notifications
You must be signed in to change notification settings - Fork 948
Build: Update grunt-jscs #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
// Add totals to table | ||
i = firstTestedColumn(); | ||
while ( (elem = tds[ i++ ]) ) { | ||
attr = elem.getAttribute("data-engine"); | ||
while ( ( elem = tds[ i++ ] ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really not happy with introducing such whitespace into parenthesized expressions (as opposed to parameter/argument lists). Can anything be done about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you, but I think the point is that we need consistency and the easiest way to get that now is by making the rules as simple as possible for jscs to enforce.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, if you remember, we three were outvoted on this matter, for me this very uncomfortable too :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the lack of spaces in the inner parens actually makes it clearer that they are doing grouping, so I am not a fan of extra spaces either. So is this mainly about making a simple rule ("There must be spaces around parens, except the left paren of a function call")?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rule that I want would apply to parenthesized expressions specifically instead of only the broader class including function parameters and call expression arguments (all of which are wrapped in parentheses).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gibson042 distinguishing grouping parentheses with other cases is pretty hard goal to accomplish :-(, otherwise i would did it a long time.
Nevertheless, you are very welcome to take a stab on it yourself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be easier after the San Francisco ESTree concrete syntax discussion. But if you can point me at the relevant code in JSCS, I'll happily take a look sooner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to land to make Sizzle buildable in Node 7 when it comes in 5 months as the current JSCS uses an old version of |
It will also need a rebase to resolve conflicts. |
Where? Could you provide a link? |
|
no-no, i meant "uses" part, where is it declared as dependency? |
Ah, OK. It's easy to check. :)
Wersions <4.0.0 are affected. |
it seems we just using old So i could start working on moving to eslint. Also, this
Is still stands, although i would just remove these changes, we need to update that list anyhow |
grunt & grunt-cli updates must wait for the grunt-jscs update that's being prepared in #330.
I'm closing this. An ESLint replacement would be welcomed, which I can do later if no one else is interested. |
I would still merge it though, code style violations would be present either way, i was planing do the eslint migration too, right after core |
Since you closed this pull despite my suggestion, i imagine you have your own plan how to do this without duplicating these efforts so i will leave you to it then |
cc @markelog