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

Feature Request: Add rule for indentation similar to yamllint #106

Closed
dawidmalina opened this issue Nov 11, 2019 · 2 comments
Closed

Feature Request: Add rule for indentation similar to yamllint #106

dawidmalina opened this issue Nov 11, 2019 · 2 comments
Labels

Comments

@dawidmalina
Copy link

Here's the indentation rule in yamllint: https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.indentation

the following code snippet would fail:

/path/to/file1:
 file.managed:
    - contents: This is line 1

the following code snippet would fail:

/path/to/file1:
    file.managed:
      - contents: This is line 1

the following code snippet would pass:

/path/to/file1:
  file.managed:
    - contents: This is line 1
@dawidmalina
Copy link
Author

I have quite naive implementation (looking for the line starting with odd spaces - like 1,3,5,7,9) but doing enough to find simple mistakes. I will drop pull request this week.

@roaldnefs
Copy link
Member

Closing this issue in favour of #240.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants