Skip to content

Commit

Permalink
feat: update golangci-lint config template
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjydev committed Apr 13, 2024
1 parent 7631c63 commit 43fc177
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/flake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
with:
authToken: ${{ secrets.ALTF4LLC_CACHIX_AUTH_TOKEN }}
name: ${{ env.CACHIX_BINARY_CACHE }}
- uses: actions/checkout@v4
- run: nix develop -c just build
- uses: actions/checkout@v4
- run: nix develop -c just build
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
issues:
exclude:
- "Error return value of `\(github.com/go-kit/log.Logger\).Log` is not checked"
- Error return value of `\(github.com/go-kit/log.Logger\).Log` is not checked

4 changes: 3 additions & 1 deletion internal/cli/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ var generateCmd = &cobra.Command{
return fmt.Errorf("could not create templater: %v", err)
}

fmt.Printf("%+v\n", t)
if debug {
fmt.Printf("%+v\n", t)
}

return t.Render()
},
Expand Down
4 changes: 2 additions & 2 deletions internal/templates/templates/common/go/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
issues:
exclude:
{{ range .Lint.Exclude -}}
- "{{ . }}"
- {{ . }}
{{- end }}
{{ range .Lint.ExtraExclude -}}
- "{{ . }}"
- {{ . }}
{{- end }}

0 comments on commit 43fc177

Please sign in to comment.