-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd4d721
commit 32ba7d4
Showing
7 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
run: | ||
tests: true | ||
skip-dirs: | ||
- _examples | ||
|
||
output: | ||
print-issued-lines: false | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- maligned | ||
- megacheck | ||
- lll | ||
- gocyclo | ||
- dupl | ||
- gochecknoglobals | ||
- funlen | ||
- godox | ||
- wsl | ||
- gomnd | ||
- gocognit | ||
- goerr113 | ||
- nolintlint | ||
- testpackage | ||
- godot | ||
- nestif | ||
- paralleltest | ||
- nlreturn | ||
- cyclop | ||
- exhaustivestruct | ||
- gci | ||
- gofumpt | ||
- errorlint | ||
- exhaustive | ||
- ifshort | ||
- wrapcheck | ||
- stylecheck | ||
- thelper | ||
- nonamedreturns | ||
- revive | ||
- dupword | ||
- exhaustruct | ||
- varnamelen | ||
- forcetypeassert | ||
- ireturn | ||
- maintidx | ||
- govet | ||
- nosnakecase | ||
- testableexamples | ||
- musttag | ||
- depguard | ||
- goconst | ||
- perfsprint | ||
- mnd | ||
- predeclared | ||
- nilnil | ||
|
||
linters-settings: | ||
govet: | ||
check-shadowing: true | ||
gocyclo: | ||
min-complexity: 10 | ||
dupl: | ||
threshold: 100 | ||
goconst: | ||
min-len: 8 | ||
min-occurrences: 3 | ||
forbidigo: | ||
#forbid: | ||
# - (Must)?NewLexer$ | ||
exclude_godoc_examples: false | ||
|
||
issues: | ||
max-per-linter: 0 | ||
max-same: 0 | ||
exclude-use-default: false | ||
exclude: | ||
# Captured by errcheck. | ||
- "^(G104|G204):" | ||
# Very commonly not checked. | ||
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked' | ||
- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported' | ||
- "composite literal uses unkeyed fields" | ||
- 'declaration of "err" shadows declaration' | ||
- "should not use dot imports" | ||
- "Potential file inclusion via variable" | ||
- "should have comment or be unexported" | ||
- "comment on exported var .* should be of the form" | ||
- "at least one file in a package should have a package comment" | ||
- "string literal contains the Unicode" | ||
- "methods on the same type should have the same receiver name" | ||
- "_TokenType_name should be _TokenTypeName" | ||
- "`_TokenType_map` should be `_TokenTypeMap`" | ||
- "rewrite if-else to switch statement" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.golangci-lint-1.51.2.pkg | ||
.golangci-lint-1.61.0.pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/alecthomas/go-check-sumtype | ||
|
||
go 1.22.0 | ||
go 1.23.0 | ||
|
||
toolchain go1.23.3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters