Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comments-indentation false positive #574

Closed
Vanav opened this issue May 31, 2023 · 2 comments
Closed

comments-indentation false positive #574

Vanav opened this issue May 31, 2023 · 2 comments

Comments

@Vanav
Copy link

Vanav commented May 31, 2023

Error example:

- block:
  - name: Command 1
    command: test 1
  #- name: Command 2
  #  command: test 2

Output:

yaml[comments-indentation]: Comment not indented like content
roles/base/tasks/RedHat-test.yml:4

.yamllint:

rules:
  indentation:
    indent-sequences: consistent
  comments:
    require-starting-space: false
  comments-indentation: {}

No error:

- block:
  #- name: Command 2
  #  command: test 2
  - name: Command 1
    command: test 1

I'm using ansible-lint latest version 6.17.0.
Seems parser doesn't like comment block at the end of file..

@adrienverge
Copy link
Owner

Hello,

Could this be a duplicate of #384 (and #141)?

@Vanav
Copy link
Author

Vanav commented Jun 1, 2023

Yes, I've not found it, I'm sorry.

@Vanav Vanav closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants