Skip to content

Commit 8e26b78

Browse files
authored
chore: add support for gomoddirectives (#4052)
1 parent f20b5dc commit 8e26b78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ linters:
2121
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
2222
- gofumpt # Gofumpt checks whether code was gofumpt-ed. [fast: true, auto-fix: true]
2323
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt. [fast: true, auto-fix: true]
24+
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod. [fast: true, auto-fix: false]
2425
- gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations. [fast: true, auto-fix: false]
2526
- goprintffuncname # Checks that printf-like functions are named with `f` at the end [fast: true, auto-fix: false]
2627
- gosec #(gas): Inspects source code for security problems [fast: false, auto-fix: false]

0 commit comments

Comments
 (0)