Skip to content

Linting kind of breaks while fixing errors? #10

@kepi

Description

@kepi

Take i.e. this example as a minimal reproduction:

---
- name: transport cert installed
  copy:
    dest: /some/path/transport.crt
    src: "some.crt"

There are two errors in this snippet:

  • name is starting with a lowerase character
  • mode is missing

But I'm seeing only one:

Image

So I add mode, save and this is what I'm seeing:

Image

I see two exclamation points but I don't see anywhere what the problem is. When I change "t" to uppercase and save the file, everything looks OK.

Real problem is, that with more complex examples, it kinds of totally breaks and starts showing errors in many places without real reason. Only thing that works for me is to revert buffer after saving, which I'm doing now, but that isn't great experience.

Disclaimer: It is definitely possible that this is how flymake is supposed to work and I just don't now something relevant, but I didn't find anything related while quick checking flymake doc. I never used it before.

I would be glad even for ideas/workaround as I have tons of files to fix ahead and I would like to improve the workflow before I get to it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions