Format all files with prettier
VSCode plugin and add yamllint
in CI
#413
No reviewers
Labels
No Label
has
backport
in progress
invalid
kind
breaking
kind
bug
kind
build
kind
dependency
kind
deployment
kind
docs
kind
enhancement
kind
feature
kind
lint
kind
proposal
kind
question
kind
refactor
kind
security
kind
testing
kind
translation
kind
ui
need
backport
priority
critical
priority
low
priority
maybe
priority
medium
reviewed
duplicate
reviewed
invalid
reviewed
wontfix
skip-changelog
status
blocked
status
needs-feedback
status
needs-reviews
status
wip
upstream
gitea
upstream
other
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/helm-chart#413
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "format-files"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@justusbunsi to end my formatting mess... ;)
I am not fully sure myself about the linebreaks in
values.yaml
but I don't think there's an easy way to change that behavior.@pat-s can we add a lint step to CI to ensure it stay like this?
Good idea! https://github.com/cytopia/docker-yamllint looks promising to me. Let's see if I can get it configured quickly.
Format all files with `prettier` VSCode pluginto Format all files with `prettier` VSCode plugin and add `yamllint` in CI@6543 Not sure if it covers all cases but I don't have resources now to check for each edge case :)
I'd argue: "better than before" ?
LGTM
@ -5,3 +2,1 @@
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 12.2.6
- name: memcached
If possible, we should probably disable formatting autogenerated files like Chart.lock. A
helm dependency update
with actually updated dependency version will remove the indentation again.@ -5,3 +2,1 @@
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 12.2.6
- name: memcached
I think it's fine: the formatting is only targeting the indentation (which is off imo and according to the formatter).
The indentation is not changed when running
helm dependency update
.So I think once we get the PR in, there shouldn't be any conflicts in this regard.
@justusbunsi I'm gonna merge this so I don't have to rebase another dozen times :) If something is troubling us afterwards, we can still account/adapt.
Alright. 👍
Regarding the
helm dependency update
: it won't change indentation when nothing has changed in chart.yaml. If this file has a change on the dependency version, the update command will rewrite the lock file and resets the manually changed indentation. I've tested those two cases prior to mentioning it. But thinking about it: since changing the dep version requires rewriting the lock file anyway, it's nothing to be concerned about.Ah thanks, you're right, that's unfortunate (just tried it).
See #424 for a possible solution.