kubearchive / kubearchive

Apache License 2.0
5 stars 6 forks source link

Introduce an .editorconfig file #57

Open rh-hemartin opened 4 weeks ago

rh-hemartin commented 4 weeks ago

We found ourselves with mix and match indentation due to different IDEs getting different clues for indenting files. An .editorconfig file should reduce the number of problems we have with different indentation practices. Stuff to include in the editorconfig:

skoved commented 3 weeks ago

I think everything here makes sense. On top of this I think we should enable gofmt in golangci-lint (we already run it against PRs). This will enforce the golang style rules on all *.go files (not just hard tabs instead of spaces). https://golangci-lint.run/usage/configuration/

skoved commented 3 weeks ago

also for helm, the best practice for indenting is 2 spaces (no tabs)