Skip to content

Commit

Permalink
Update zerolint version
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Eikemeier <[email protected]>
  • Loading branch information
eikemeier committed Nov 12, 2024
1 parent 20835df commit b82162d
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .custom-gcl.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: v1.61.0
version: v1.62.0
plugins:
- module: fillmore-labs.com/zerolint-golangci-plugin
path: .
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
go: ["1.23", "1.22"]
go: ["1.23.3", "1.22.9"]
env:
GOTOOLCHAIN: local
steps:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: 🧸 golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
version: v1.62.0
args: --config=.golangci-default.yaml
- name: 🔨 Test
run: golangci-lint custom -v && ./custom-gcl run -v .
2 changes: 0 additions & 2 deletions .golangci-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ linters:
enable-all: true
disable:
# deprecated
- execinquery
- exportloopref
- gomnd
# disabled
- depguard
- dupl
Expand Down
3 changes: 2 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
run:
go: "1.22.9"
modules-download-mode: readonly
linters:
enable:
- zerolint
linters-settings:
custom:
zerolint:
type: "module"
type: module
settings:
excluded: []
basic: true
6 changes: 6 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ overrides:
- files: "*.md"
options:
tabWidth: 2
- files: "*.yaml"
options:
tabWidth: 2
- files: "*.yml"
options:
tabWidth: 2
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Add a file `.custom-gcl.yaml` to your source with

```YAML
---
version: v1.61.0
version: v1.62.0
plugins:
- module: fillmore-labs.com/zerolint-golangci-plugin
version: v0.0.5
version: v0.0.6
```
then run `golangci-lint custom`. You get an `custom-gcl` executable that can be configured in `.golangci.yaml`:
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module fillmore-labs.com/zerolint-golangci-plugin

go 1.22.7
go 1.22.9

toolchain go1.23.1
toolchain go1.23.3

require (
fillmore-labs.com/zerolint v0.0.5
fillmore-labs.com/zerolint v0.0.6
github.com/golangci/plugin-module-register v0.1.1
golang.org/x/tools v0.25.0
golang.org/x/tools v0.27.0
)
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
fillmore-labs.com/zerolint v0.0.5 h1:+MuKofZiuKQF6+5Xu0rtE82sVx2UlBcvF/1dK7x6pOQ=
fillmore-labs.com/zerolint v0.0.5/go.mod h1:SOKYmjl0BNu50oBlKGUoAMhY2yepZwbANWCsMbSwLOE=
fillmore-labs.com/zerolint v0.0.6 h1:pFGSYnXtnpMuzo5NxJ1IDMaOA3DZuijL1IJm1h1l/yY=
fillmore-labs.com/zerolint v0.0.6/go.mod h1:bX+KNByQeomQ6eDFkfw+OORPA1J4UIN1pSdPZz0wo9M=
github.com/golangci/plugin-module-register v0.1.1 h1:TCmesur25LnyJkpsVrupv1Cdzo+2f7zX0H6Jkw1Ol6c=
github.com/golangci/plugin-module-register v0.1.1/go.mod h1:TTpqoB6KkwOJMV8u7+NyXMrkwwESJLOkfl9TxR1DGFc=
golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0=
golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE=
golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg=
golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=
golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ=
golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/tools v0.27.0 h1:qEKojBykQkQ4EynWy4S8Weg69NumxKdn40Fce3uc/8o=
golang.org/x/tools v0.27.0/go.mod h1:sUi0ZgbwW9ZPAq26Ekut+weQPR5eIM6GQLQ1Yjm1H0Q=

0 comments on commit b82162d

Please sign in to comment.