Skip to content

Commit 342ee31

Browse files
authored
Update golint and gocyclo linters configuration (#132)
1 parent 9d8f027 commit 342ee31

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.golangci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ linters-settings:
22
goimports:
33
local-prefixes: github.com/golang-templates/seed
44
golint:
5-
min-confidence: 0
5+
min-confidence: 0.8
6+
gocyclo:
7+
min-complexity: 15
68
govet:
79
check-shadowing: true
810
misspell:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Automatic trigger for pull requests targeting the `main` branch.
1919
- Manual trigger via [`workflow_dispatch`](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch) ([blog post](https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/)).
2020
- Lock the runners' version the in `build` and `release` GitHub workflows. ([#130](https://github.com/golang-templates/seed/pull/130))
21+
- Configure `golint` linter with `min-confidence: 0.8` to avoid [false positive "should have a package comment"](https://github.com/golangci/golangci-lint/issues/1556). ([#132](https://github.com/golang-templates/seed/pull/132))
22+
- Configure `gocyclo` linter with `min-complexity: 15` with is a recommeded value by [Go Report Card](https://goreportcard.com/). ([#132](https://github.com/golang-templates/seed/pull/132))
2123

2224
## [0.14.0](https://github.com/golang-templates/seed/releases/tag/v0.14.0)
2325

0 commit comments

Comments
 (0)