Skip to content

Commit

Permalink
Fix issues reported by golangsci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Nov 2, 2023
1 parent e3b266c commit a9e1748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ linters-settings:
modules:
- github.com/pkg/errors:
recommendations:
- errors
- errors
stylecheck:
# STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
# Default: ["*"]
checks: [ "all", "-ST1000", "-ST1003" ]
checks: ["all", "-ST1000", "-ST1003"]

linters:
enable:
Expand Down Expand Up @@ -116,6 +116,7 @@ issues:
- path: cmd/ocfclient/main\.go
linters:
- gocognit
- goconst
- gocyclo
- gosec

Expand Down
2 changes: 1 addition & 1 deletion client/updateResource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestClientUpdateResourceInRFOTM(t *testing.T) {
deviceID: deviceID,
href: configuration.ResourceURI,
data: map[string]interface{}{
"n": t.Name() + "-valid",
"n": t.Name() + "-forbidden",
},
opts: []client.UpdateOption{client.WithDiscoveryConfiguration(core.DefaultDiscoveryConfiguration())},
},
Expand Down

0 comments on commit a9e1748

Please sign in to comment.