Skip to content

Commit

Permalink
golint
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Oct 3, 2024
1 parent 6212c6f commit 3083f8f
Show file tree
Hide file tree
Showing 14 changed files with 122 additions and 14 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.23

require (
github.com/magefile/mage v1.14.0
github.com/mcandre/mage-extras v0.0.18
github.com/mcandre/mage-extras v0.0.19
mvdan.cc/sh/v3 v3.7.0
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/magefile/mage v1.14.0 h1:6QDX3g6z1YvJ4olPhT1wksUcSa/V0a1B+pJb73fBjyo=
github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/mcandre/mage-extras v0.0.18 h1:f7aZZGmqnElr3GcMZQvz//cn1uxneHEMrY5X7NysQIM=
github.com/mcandre/mage-extras v0.0.18/go.mod h1:zr+/cO9v8EtPmjHMVYx7ijYrbT3tfJSNgXc9ze6LJ4s=
github.com/mcandre/mage-extras v0.0.19 h1:6xBSJ5eSmpgOdNoFe0X6JAhmeilCujVLJzOpCZ5vZqE=
github.com/mcandre/mage-extras v0.0.19/go.mod h1:zr+/cO9v8EtPmjHMVYx7ijYrbT3tfJSNgXc9ze6LJ4s=
github.com/rogpeppe/go-internal v1.10.1-0.20230524175051-ec119421bb97 h1:3RPlVWzZ/PDqmVuf/FKHARG5EMid/tl7cv54Sw/QRVY=
github.com/rogpeppe/go-internal v1.10.1-0.20230524175051-ec119421bb97/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
mvdan.cc/sh/v3 v3.7.0 h1:lSTjdP/1xsddtaKfGg7Myu7DnlHItd3/M2tomOcNNBg=
Expand Down
4 changes: 4 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ func GoFmt() error { return mageextras.GoFmt("-s", "-w") }
// GoImports runs goimports.
func GoImports() error { return mageextras.GoImports("-w") }

// GoLint runs golint.
func GoLint() error { return mageextras.GoLint() }

// GoVet runs default go vet analyzers.
func GoVet() error { return mageextras.GoVet() }

Expand Down Expand Up @@ -146,6 +149,7 @@ func Lint() error {
mg.Deps(Deadcode)
mg.Deps(GoFmt)
mg.Deps(GoImports)
mg.Deps(GoLint)
mg.Deps(GoVet)
mg.Deps(Errcheck)
mg.Deps(Nakedret)
Expand Down
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ all:
go install github.com/alexkohler/[email protected]
go install github.com/kisielk/[email protected]
go install github.com/magefile/[email protected]
go install github.com/mcandre/factorio/cmd/[email protected]
go install github.com/mcandre/factorio/cmd/[email protected]
go install golang.org/x/lint/golint@latest
go install golang.org/x/tools/cmd/deadcode@latest
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
Expand Down
63 changes: 63 additions & 0 deletions vendor/github.com/mcandre/mage-extras/.editorconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/mcandre/mage-extras/.rubberstamp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vendor/github.com/mcandre/mage-extras/.tool-versions

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions vendor/github.com/mcandre/mage-extras/DEVELOPMENT.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/mcandre/mage-extras/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions vendor/github.com/mcandre/mage-extras/golint.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/github.com/mcandre/mage-extras/magefile.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vendor/github.com/mcandre/mage-extras/makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/mcandre/mage-extras/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# github.com/magefile/mage v1.14.0
## explicit; go 1.12
github.com/magefile/mage/mg
# github.com/mcandre/mage-extras v0.0.18
# github.com/mcandre/mage-extras v0.0.19
## explicit; go 1.23
github.com/mcandre/mage-extras
# mvdan.cc/sh/v3 v3.7.0
Expand Down

0 comments on commit 3083f8f

Please sign in to comment.