Skip to content

Commit

Permalink
review: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 19, 2024
1 parent 11f0712 commit 213a41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ linters:

issues:
exclude-use-default: false
max-per-linter: 0
max-issues-per-linter: 0
max-same-issues: 0
exclude:
- 'fmt.Sprintf can be replaced with string'
exclude-rules:
- path: .*_test.go
linters:
Expand Down
2 changes: 1 addition & 1 deletion syrup.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ func quickGoImports(descPkg PackageDesc) []string {

func getParamName(tVar *types.Var, i int) string {
if tVar.Name() == "" {
return string(rune('a'+i)) + "Param"
return fmt.Sprintf("%sParam", string(rune('a'+i)))
}
return tVar.Name()
}
Expand Down

0 comments on commit 213a41d

Please sign in to comment.