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

Alignment in a resource with a single parameter #30

Open
gerases opened this issue Nov 10, 2021 · 1 comment
Open

Alignment in a resource with a single parameter #30

gerases opened this issue Nov 10, 2021 · 1 comment
Labels
bug Something isn't working community

Comments

@gerases
Copy link

gerases commented Nov 10, 2021

Should this trigger a linter error:

class { 'some_class':
  some_param                             => 'some_value',
}

Note the extra spaces. Currently, there are no warnings in that situation.

@LukasAud
Copy link

LukasAud commented Aug 1, 2023

Hi @gerases, sorry for the long delay in follow-up.

Our documentation states that very short resources should be declared in a single line. That might be the reason as to why our lint does ignore this example.

However, I do agree that lint should be pointing out (and possibly fixing) this style. Whether it is by simply imposing standard alignment on the single parameter line or by enforcing a more accurate style.

We will add this into our backlog and hopefully we can look into addressing it in the near future. For now, I'll leave this marked as a bug.

@LukasAud LukasAud added the bug Something isn't working label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

No branches or pull requests

3 participants