eclint icon indicating copy to clipboard operation
eclint copied to clipboard

eclint not picking up indenting in yaml file

Open cdloh opened this issue 6 years ago • 3 comments

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.

cdloh avatar Aug 14 '18 23:08 cdloh

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?

asharpe avatar Aug 15 '18 22:08 asharpe

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

  • Which command or function do you use?
  • Which file is the input?
  • What is the actual output result?
  • What is your expected output results?

gucong3000 avatar Aug 16 '18 02:08 gucong3000

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

asharpe avatar Aug 16 '18 03:08 asharpe