Skip to content

Commit bee3afe

Browse files
Add a few more linters
1 parent 4de151f commit bee3afe

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Diff for: .golangci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,29 @@ linters:
1717
- makezero
1818
# - misspell
1919
# - musttag
20+
- nakedret
21+
- noctx
22+
- nolintlint
23+
- reassign
24+
# - revive
25+
- staticcheck
26+
# - stylecheck
27+
- typecheck
28+
- unconvert
29+
# - unparam
30+
- unused
31+
# - whitespace
2032

2133
linters-settings:
2234
gosec:
2335
excludes:
2436
- G115 #Potential integer overflow when converting between integer types
2537
# misspell:
2638
# locale: US
39+
nolintlint:
40+
allow-unused: true # report any unused nolint directives
41+
require-explanation: false # don't require an explanation for nolint directives
42+
require-specific: true # require nolint directives to be specific about which linter is being skipped
2743

2844
issues:
2945
exclude-dirs:

Diff for: director/vms.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (c Client) deploymentResourceInfos(deploymentName string, resourceType stri
164164
err := json.Unmarshal([]byte(piece), &resp)
165165
if err != nil {
166166
return nil, bosherr.WrapErrorf(
167-
err, "Unmarshaling %s info response: '%s'", strings.TrimSuffix(resourceType, "s"), string(piece))
167+
err, "Unmarshaling %s info response: '%s'", strings.TrimSuffix(resourceType, "s"), piece)
168168
}
169169

170170
resp.Deployment = deploymentName

0 commit comments

Comments
 (0)