Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2021-11-23 18:07:15 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-11-23 18:07:15 +0300
commit9e5735cc1b202ce5e5657ad83eeeb7b037141e09 (patch)
tree9f8bd82ad9300b5b933b91bbf42202538becf8b3
parent5eb94b765d5a3f4a98697929de2efc551c1a4f26 (diff)
parent46bc7c87f72ea5789e59f5bcadf186fe8b756066 (diff)
Merge branch 'pks-lint-stylecheck-exclusion' into 'master'
lint: Convert stylecheck exclude to configuration See merge request gitlab-org/gitaly!4127
-rw-r--r--.golangci.yml21
1 files changed, 11 insertions, 10 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 95bf8ed03..584ba2bf9 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -35,6 +35,17 @@ linters:
- varcheck
- wastedassign
+linters-settings:
+ depguard:
+ list-type: blacklist
+ include-go-root: true
+ packages-with-error-message:
+ - io/ioutil: "ioutil is deprecated starting with Go 1.16"
+ stylecheck:
+ # ST1000 checks for missing package comments. We don't use these for most
+ # packages, so let's disable this check.
+ checks: [ "all", "-ST1000" ]
+
issues:
exclude-use-default: false
exclude-rules:
@@ -77,17 +88,7 @@ issues:
- errcheck
path: "internal/command/command.go"
text: "Error return value of `syscall.Kill` is not checked"
- - linters:
- - stylecheck
- text: "at least one file in a package should have a package comment"
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
-
-linters-settings:
- depguard:
- list-type: blacklist
- include-go-root: true
- packages-with-error-message:
- - io/ioutil: "ioutil is deprecated starting with Go 1.16"