Skip to content

Commit f9b7297

Browse files
committed
fixed gomoddirectives linter
1 parent c6e45cd commit f9b7297

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ linters-settings:
112112
# if it's called for subdir of a project it can't find external interfaces. All text editor integrations
113113
# with golangci-lint call it on a directory with the changed file.
114114
check-exported: false
115+
gomoddirectives:
116+
replace-local: true
117+
replace-allow-list:
118+
- xorm.io/xorm
115119
gocritic:
116120
disabled-checks:
117121
- whyNoLint # https://github.com/go-critic/go-critic/issues/1063
@@ -232,7 +236,6 @@ linters:
232236
- goerr113
233237
- golint
234238
- gomnd
235-
- gomoddirectives
236239
- ifshort
237240
- interfacebloat
238241
- ireturn

0 commit comments

Comments
 (0)