-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: actually enable golangci-lint #6362
Conversation
dc0dd04
to
5b68c2b
Compare
@@ -599,8 +600,8 @@ Filters default to those specified under the "Swarm.AddrFilters" config key. | |||
} | |||
|
|||
var output []string | |||
for _, f := range swrm.Filters.Filters() { | |||
s, err := mafilter.ConvertIPNet(f) | |||
for _, f := range swrm.Filters.FiltersForAction(mafilter.ActionDeny) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving away from deprecated APIs.
@@ -14,7 +14,7 @@ import ( | |||
$shortpkg "$pkg" | |||
) | |||
|
|||
var Plugins = $shortpkg.Plugins | |||
var Plugins = $shortpkg.Plugins //nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't lint because this is "unused".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 nit, rest lgtm
namesys/resolve/pathresolver_test.go
Outdated
@@ -16,17 +16,17 @@ func TestResolveNoComponents(t *testing.T) { | |||
} | |||
|
|||
_, err = resolve.Resolve(n.Context(), n.Namesys, n.Resolver, path.Path("/ipns/")) | |||
if err != path.ErrNoComponents { | |||
t.Fatal("Should error with no components (/ipns/).", err) | |||
if err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to check more than 'there was an error'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I'm lazy... fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a small question about a test, but nothing I'd block the work over. LGTM. 👍
5b68c2b
to
c39ad0b
Compare
also fixes #6320 (golangci-lint will fail if something doesn't compile)