diff --git a/.golangci.yml b/.golangci.yml index 10969f8b..7934cc7e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -44,3 +44,10 @@ linters: run: skip-dirs: - test/testdata_etc + +# golangci.com configuration +# https://github.com/golangci/golangci/wiki/Configuration +service: + golangci-lint-version: 1.13.x # use fixed version to not introduce new linters unexpectedly + prepare: + - echo "here I can run custom commands, but no preparation needed" diff --git a/README.md b/README.md index b9c3fc75..d52ece51 100644 --- a/README.md +++ b/README.md @@ -784,6 +784,13 @@ linters: run: skip-dirs: - test/testdata_etc + +# golangci.com configuration +# https://github.com/golangci/golangci/wiki/Configuration +service: + golangci-lint-version: 1.13.x # use fixed version to not introduce new linters unexpectedly + prepare: + - echo "here I can run custom commands, but no preparation needed" ``` ## False Positives