Skip to content

Commit 0c259cf

Browse files
author
Andrew Pennebaker
committed
golint
1 parent 897aeec commit 0c259cf

File tree

14 files changed

+121
-13
lines changed

14 files changed

+121
-13
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.23
44

55
require (
66
github.com/magefile/mage v1.14.0
7-
github.com/mcandre/mage-extras v0.0.18
7+
github.com/mcandre/mage-extras v0.0.19
88
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
github.com/magefile/mage v1.14.0 h1:6QDX3g6z1YvJ4olPhT1wksUcSa/V0a1B+pJb73fBjyo=
22
github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
3-
github.com/mcandre/mage-extras v0.0.18 h1:f7aZZGmqnElr3GcMZQvz//cn1uxneHEMrY5X7NysQIM=
4-
github.com/mcandre/mage-extras v0.0.18/go.mod h1:zr+/cO9v8EtPmjHMVYx7ijYrbT3tfJSNgXc9ze6LJ4s=
3+
github.com/mcandre/mage-extras v0.0.19 h1:6xBSJ5eSmpgOdNoFe0X6JAhmeilCujVLJzOpCZ5vZqE=
4+
github.com/mcandre/mage-extras v0.0.19/go.mod h1:zr+/cO9v8EtPmjHMVYx7ijYrbT3tfJSNgXc9ze6LJ4s=

magefile.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ func Deadcode() error { return mageextras.Deadcode("./...") }
3434
// Gofmt runs gofmt.
3535
func GoFmt() error { return mageextras.GoFmt("-s", "-w") }
3636

37+
// GoLint runs golint.
38+
func GoLint() error { return mageextras.GoLint() }
39+
3740
// GoImports runs goimports.
3841
func GoImports() error { return mageextras.GoImports("-w") }
3942

@@ -68,6 +71,7 @@ func Lint() error {
6871
mg.Deps(Deadcode)
6972
mg.Deps(GoFmt)
7073
mg.Deps(GoImports)
74+
mg.Deps(GoLint)
7175
mg.Deps(GoVet)
7276
mg.Deps(Errcheck)
7377
mg.Deps(Nakedret)

makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ all:
88
go install github.com/alexkohler/nakedret@v1.0.1
99
go install github.com/kisielk/errcheck@v1.7.0
1010
go install github.com/magefile/mage@v1.14.0
11+
go install golang.org/x/lint/golint@latest
1112
go install golang.org/x/tools/cmd/deadcode@latest
1213
go install golang.org/x/tools/cmd/goimports@latest
1314
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest

vendor/github.com/mcandre/mage-extras/.editorconfig

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mcandre/mage-extras/.rubberstamp

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mcandre/mage-extras/.tool-versions

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mcandre/mage-extras/DEVELOPMENT.md

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mcandre/mage-extras/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mcandre/mage-extras/golint.go

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)