jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 513 forks source link

validateIndentation on switch statements fails if opening bracket is on new line #2262

Closed Tathanen closed 8 years ago

Tathanen commented 8 years ago

If you have validateIndentation set to an integer (in my case 4), it complains about switch statements where the opening curly bracket isn't on the opening line. See:

Freaks out: Error

Fine: Fine

I write my code Allman style and everything else is fine, just switch statements seem to be actin weird.

Was able to reproduce using the JSCS CLI as well, screenshots from Atom for convenience.

markelog commented 8 years ago

At this point only major and CST related bugs will be fixed.

Tathanen commented 8 years ago

Is eslint what will be supported moving forward? I wasn't aware jscs was being eol'd.

markelog commented 8 years ago

Check it out - https://medium.com/@markelog/jscs-end-of-the-line-bc9bf0b3fdb2#.jsnhpxsjz

Tathanen commented 8 years ago

Got it, thanks!