Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

1.4.4 broke requireLeftStickOperator for comma and jquery preset #376

Closed
nschonni opened this issue May 14, 2014 · 14 comments
Closed

1.4.4 broke requireLeftStickOperator for comma and jquery preset #376

nschonni opened this issue May 14, 2014 · 14 comments

Comments

@nschonni
Copy link
Contributor

See https://travis-ci.org/wet-boew/wet-boew/builds/25194225
Using the jquery preset, errors are no raised for commas that stick to the left operator even though that is required in the rule https://github.com/mdevils/node-jscs/blob/master/presets/jquery.json#L19

@mikesherov
Copy link
Contributor

Yup... Massive break.

@mikesherov
Copy link
Contributor

Just discovering it in my CI now. @markelog urgent.

@mikesherov
Copy link
Contributor

Also, if you specify = and not , it still validates ,!

@markelog
Copy link
Member

afk right now, but will get back to my desk in 10 minutes

@mikesherov
Copy link
Contributor

if (operators[','] || operators['=']) {
            file.iterateTokensByType('Punctuator', function(token, i, tokens) {
                var operator = token.value;
                if (operator !== ',' && operator !== '=') {

makes it validate , for = and vice versa. Just a drop too clever. We'll need a 1.4.5 tonight.

@MikeKlemarewski
Copy link

Is this change going to be released soon? It's breaking https://github.com/gustavohenke/grunt-jscs-checker because of they specify ~1.4.3 for node-jscs.

@markelog
Copy link
Member

@MikeKlemarewski very soon

@markelog
Copy link
Member

New version is published

@nschonni
Copy link
Contributor Author

Thanks @markelog!

@MikeKlemarewski
Copy link

@markelog Thanks for the swift action!

@gustavohenke
Copy link
Member

Hey @MikeKlemarewski, a new version of grunt-jscs-checker has just been published skipping the buggy 1.4.4.

@MikeKlemarewski
Copy link

@gustavohenke Thanks! Might be good to be more strict on dependencies to avoid these kind of breakages.

@sylvain-hamel
Copy link

Thanks for the fast turnaroud

@NickHeiner
Copy link

👍 thanks for the quick fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants