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

Exclude jsonnet files from indent linter #360

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Exclude jsonnet files from indent linter #360

merged 1 commit into from
Aug 24, 2021

Conversation

bastjan
Copy link
Contributor

@bastjan bastjan commented Aug 24, 2021

jsonnetfmt already has a very opinionated formatter, which makes the linter superfluous and can lead to conflicts between jsonnetfmt and editorconfig linters.

See: https://github.com/projectsyn/component-backup-k8up/pull/36/checks?check_run_id=3221663321#step:3:10

It hit us again yesterday while onboarding https://github.com/projectsyn/component-system-upgrade-controller and today in https://github.com/projectsyn/component-kyverno. It is not possible to make both the jsonnet formatter and the editorconfig indent linter happy at the same time without ugly workarounds (putting everything in one line, append a character to the variable to get the correct indentation).

Checklist

  • Keep pull requests small so they can be easily reviewed.

@bastjan bastjan added the change PR with a minor change which affects users label Aug 24, 2021
@bastjan bastjan requested review from glrf and corvus-ch August 24, 2021 07:12
@bastjan bastjan merged commit 36e273f into master Aug 24, 2021
@bastjan bastjan deleted the bastjan-patch-1 branch August 24, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change PR with a minor change which affects users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants