Merge multiple config files #2001
Unanswered
adamkissvcc
asked this question in
Q&A
Replies: 1 comment
-
I am using 3 approaches:
# with change in place `.golangci.yaml` with a changes from `~/.golangci-lint.yaml`
yq ea -i 'select(fileIndex == 0) * select(fileIndex == 1)' .golangci.yaml ~/.golangci-lint.yaml
yq ea -i 'del(.linters-settings.exhaustivestruct.struct-patterns)' .golangci.default.yaml
yq ea -i '.linters-settings.blocked.modules += "gopkg.in\/yaml.v2' .golangci.default.yaml |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Is there a way, to use common configurations in a single file, and use a per-project override file for it? (Basically us a base config and an override config).
Beta Was this translation helpful? Give feedback.
All reactions