Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
disabling gomoddirectives, since it throws out unfixable warnings

    WARN [runner] Can't process result by autogenerated_exclude processor: can't filter issue result.Issue{FromLinter:"gomoddirectives", Text:"replacement are not allowed: github.com/shirou/gopsutil/v3", Severity:"", SourceLines:[]string(nil), Replacement:(*result.Replacement)(nil), Pkg:(*packages.Package)(0xc000672c00), LineRange:(*result.Range)(nil), Pos:token.Position{Filename:"go.mod", Offset:0, Line:28, Column:1}, HunkPos:0, ExpectNoLint:false, ExpectedNoLintLinter:""}: failed to get doc (lax) of file go.mod: failed to parse file: open go.mod: no such file or directory
  • Loading branch information
sni committed Mar 21, 2024
1 parent 144a4f6 commit 84f026d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ linters:
- gochecknoinits
- godot
- gofumpt
- gomoddirectives
- ifshort
- interfacer
- maligned
Expand Down Expand Up @@ -134,7 +135,6 @@ issues:
- "parameter name 'a' is too short for the scope of its usage"
- "parameter name 'b' is too short for the scope of its usage"
- ".execCommand` - `timeout` always receives `DefaultCmdTimeout"
- "replacement are not allowed: github.com/shirou/gopsutil"
- "fieldalignment: struct"
exclude-rules:
# Exclude some linters from running on tests files.
Expand Down

0 comments on commit 84f026d

Please sign in to comment.