Closed kaidjohnson closed 8 years ago
Using "gulp-jscs": "3.0.2"
Found the issue. I had non-indented breaks in my test files and indented breaks in my app files. When I reverse the order of the glob, the other set of files would fail. Need to adjust one or the other to match.
It's interesting to me that the break indentation is defined by the first file found in the glob but then enforced everywhere based on that file whereas quote rules can be defined so the first quote in a file determines the quote type used just in that file, rather than the entire glob. I would expect to see that same behavior regarding indentation, but I suppose that's a separate issue/feature request.
The code that's failing:
Error displayed (I've obscured the filename):
I have the following rule in place in my .jscsrc:
I know there are a few old tickets out there about allowing non-indented breaks in switch statements, but I believe this is a different issue and is specific to
gulp-jscs
only.When I run these files through jscs directly, it passes.
When I run them as a gulp task, it fails:
When I only pass in one glob to
gulp.src
it passes:Am I doing something wrong? Any help would be much appreciated.