-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* setting permissions to read-only * adding golangci-lint to common workflow * adding golintci config file * setting golangci output format * upgrading golangci to v6 * replace go vet, fmt, lint with golangci-lint
- Loading branch information
1 parent
a844269
commit 3ca1b25
Showing
2 changed files
with
57 additions
and
19 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,28 @@ | ||
run: | ||
timeout: 20m | ||
tests: true | ||
skip-dirs-use-default: true | ||
modules-download-mode: readonly | ||
issues: | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
new: false | ||
output: | ||
formats: | ||
- format: colored-line-number | ||
print-linter-name: true | ||
sort-results: true | ||
uniq-by-line: false | ||
print-issued-lines: true | ||
linters: | ||
disable-all: true | ||
fast: false | ||
enable: | ||
# A stricter replacement for gofmt. | ||
- gofumpt | ||
# Inspects source code for security problems. | ||
- gosec | ||
# Check for correctness of programs. | ||
- govet | ||
# Drop-in replacement of golint. | ||
- revive |
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