Skip to content

Commit f73e145

Browse files
committed
add golangci-lint as a tool
1 parent e6b1c96 commit f73e145

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/nix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
with:
1717
name: numtide
1818
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
19+
- run: $(nix-build shell.nix) --pure /usr/bin/env HOME=$HOME golangci-lint run
1920
- run: nix flake check
2021
- run: nix develop -c echo OK
2122
- name: Run nix flake archive

.golangci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
linters:
2+
presets:
3+
- bugs
4+
- unused
5+
enable:
6+
- gofmt
7+
- golint
8+
- misspell
9+
- stylecheck

devshell.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ help = "github utility"
5454
name = "hub"
5555
package = "gitAndTools.hub"
5656
category = "utilites"
57+
58+
[[commands]]
59+
help = "golang linter"
60+
name = "golangci-lint"
61+
package = "golangci-lint"
62+
category = "linters"

0 commit comments

Comments
 (0)