Open cdloh opened 6 years ago
Perhaps it can only check that any given indent is an appropriate number of indents, versus whether that number of indents is appropriate in that particular location?
@cdloh In order that I can help you better, please answer a few questions:
hi @gucong3000, I think @cdloh has answers to some of those questions in the OP, and he can probably provide answers to the other ones too :)
I'm not sure if I've setup eclint incorrectly however I can't get it to pickup incorrect tab indenting in yaml files.
It picks up indenting that's an odd number ( ie 5, 7 etc) but not if it's 4 or 8 instead of 2 & 6.
I've setup an example repo here - https://github.com/cdloh/eclint-test
With an editorconfig that I'd expect to work and some sample yaml files.
Edit. bad.yaml in the repo is the odd indented file. test.yaml has been indented one indent too far and I'd expect to be picked up but isn't.