-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #397 from crazy-max/go-1.23
update go to 1.23
- Loading branch information
Showing
10 changed files
with
89 additions
and
31 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 |
---|---|---|
@@ -1,41 +1,93 @@ | ||
run: | ||
timeout: 10m | ||
# default uses Go version from the go.mod file, fallback on the env var | ||
# `GOVERSION`, fallback on 1.17: https://golangci-lint.run/usage/configuration/#run-configuration | ||
go: "1.23" | ||
|
||
linters: | ||
enable: | ||
- bodyclose | ||
- depguard | ||
- forbidigo | ||
- gocritic | ||
- gofmt | ||
- goimports | ||
- revive | ||
- gosec | ||
- gosimple | ||
- govet | ||
- importas | ||
- ineffassign | ||
- makezero | ||
- misspell | ||
- noctx | ||
- nolintlint | ||
- revive | ||
- staticcheck | ||
- testifylint | ||
- typecheck | ||
- errname | ||
- makezero | ||
- whitespace | ||
- unused | ||
- whitespace | ||
disable-all: true | ||
|
||
linters-settings: | ||
gocritic: | ||
disabled-checks: | ||
- "ifElseChain" | ||
- "assignOp" | ||
- "appendAssign" | ||
- "singleCaseSwitch" | ||
- "exitAfterDefer" # FIXME | ||
govet: | ||
enable: | ||
- nilness | ||
- unusedwrite | ||
depguard: | ||
rules: | ||
main: | ||
deny: | ||
# The io/ioutil package has been deprecated. | ||
# https://go.dev/doc/go1.16#ioutil | ||
- pkg: "io/ioutil" | ||
desc: The io/ioutil package has been deprecated. | ||
importas: | ||
no-unaliased: true | ||
forbidigo: | ||
forbid: | ||
- '^fmt\.Errorf(# use errors\.Errorf instead)?$' | ||
gosec: | ||
excludes: | ||
- G106 # Use of ssh InsecureIgnoreHostKey should be audited | ||
- G115 # integer overflow conversion | ||
- G204 # Audit use of command execution | ||
- G402 # TLS MinVersion too low | ||
config: | ||
G306: "0644" | ||
testifylint: | ||
disable: | ||
# disable rules that reduce the test condition | ||
- "empty" | ||
- "bool-compare" | ||
- "len" | ||
- "negative-positive" | ||
|
||
issues: | ||
exclude-files: | ||
- ".*\\.pb\\.go$" | ||
exclude-rules: | ||
- linters: | ||
- revive | ||
text: "stutters" | ||
- linters: | ||
- revive | ||
text: "empty-block" | ||
- linters: | ||
- revive | ||
text: "superfluous-else" | ||
- linters: | ||
- revive | ||
text: "unused-parameter" | ||
- linters: | ||
- revive | ||
text: "redefines-builtin-id" | ||
- linters: | ||
- revive | ||
text: "if-return" | ||
|
||
# show all | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
# show all | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 |
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/crazy-max/ftpgrab/v7 | ||
|
||
go 1.21 | ||
go 1.23.0 | ||
|
||
require ( | ||
github.com/alecthomas/kong v1.6.0 | ||
|
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
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