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

chore(k8spspcapabilities): double newlines can cause yamllint breakage #596

Merged

Conversation

julianKatz
Copy link
Contributor

The default value for newlines in the yamllint linter (a commonly used tool for linting yaml) is 2. See
https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.empty_lines for more info.

This PR removes some unnecessary newlines in a rego file that trigger this linter rule.

@julianKatz julianKatz requested review from apeabody and a team September 7, 2024 00:03
@julianKatz julianKatz force-pushed the remove-double-newlines branch from b229274 to 3d0e1de Compare September 7, 2024 00:03
Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @julianKatz!

I think this is good to merge once all the tests are green.

The default value for newlines in the yamllint linter (a commonly used
tool for linting yaml) is 2.  See
https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.empty_lines
for more info.

This PR removes some unnecessary newlines in a rego file that trigger
this linter rule.

Signed-off-by: juliankatz <[email protected]>
@julianKatz julianKatz force-pushed the remove-double-newlines branch from 3d0e1de to 6dfbb3c Compare September 7, 2024 00:11
@julianKatz julianKatz merged commit 7a9e47d into open-policy-agent:master Sep 7, 2024
22 checks passed
@julianKatz julianKatz deleted the remove-double-newlines branch September 7, 2024 00:21
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

Successfully merging this pull request may close these issues.

2 participants