jednano / eclint

Validate or fix code that doesn't adhere to EditorConfig settings or infer settings from existing code.
MIT License
305 stars 28 forks source link

eclint not picking up indenting in yaml file #144

Open cdloh opened 6 years ago

cdloh commented 6 years ago

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.

asharpe commented 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?

gucong3000 commented 6 years ago

@cdloh In order that I can help you better, please answer a few questions:

asharpe commented 6 years ago

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 :)