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

jscs --fix fails to fix some simple indentation issues #2143

Closed mvolkmann closed 8 years ago

mvolkmann commented 8 years ago

The code below is not changed when "jscs --fix" is run on it. My .jscsrc file has "validateIndentation" set to 2.

 function foo(x, y) { // This whole function is indented by one space. It should be changed to two.
   return x + y ;
 }

console.log(foo('hello, ',
       'world!')) ; // this should be changed to two-space indentation

My .jscsrc file is attached. I had to make a copy named jscsrc.txt in order to attach it. jscsrc.txt

m-abs commented 8 years ago

I can't get "jscs --fix" to work with this .jscsrc. It just outputs the list of style errors. In jscs@2.1.0 --fix works just fine but in jscs@2.2.0, it doesn't work anymore.

jscsrc.txt

markelog commented 8 years ago

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