Skip to content

Commit de10fd5

Browse files
authored
Merge pull request #75 from ovh/golangci-lint
Update golangci-lint configuration
2 parents 190dffd + a906c3f commit de10fd5

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name: Tests
66
on:
77
pull_request:
88
paths-ignore:
9-
- 'README.md'
9+
- "README.md"
1010
push:
1111
paths-ignore:
12-
- 'README.md'
12+
- "README.md"
1313

1414
# Testing only needs permissions to read the repository contents.
1515
permissions:
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2626
- uses: actions/setup-go@v5
2727
with:
28-
go-version-file: 'go.mod'
28+
go-version-file: "go.mod"
2929
cache: false
3030
- run: go mod download
3131
- run: go build -v .
@@ -40,8 +40,9 @@ jobs:
4040
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
4141
- uses: actions/setup-go@v5
4242
with:
43-
go-version-file: 'go.mod'
43+
go-version-file: "go.mod"
4444
cache: false
45+
- uses: hashicorp/setup-terraform@v3
4546
- run: go generate ./...
4647
- name: git diff
4748
run: |
@@ -59,16 +60,16 @@ jobs:
5960
matrix:
6061
# list whatever Terraform versions here you would like to support
6162
terraform:
62-
- '1.0.*'
63-
- '1.1.*'
64-
- '1.2.*'
65-
- '1.3.*'
66-
- '1.4.*'
63+
- "1.0.*"
64+
- "1.1.*"
65+
- "1.2.*"
66+
- "1.3.*"
67+
- "1.4.*"
6768
steps:
6869
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
6970
- uses: actions/setup-go@v5
7071
with:
71-
go-version-file: 'go.mod'
72+
go-version-file: "go.mod"
7273
cache: true
7374
- uses: hashicorp/setup-terraform@v3
7475
with:

.golangci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ issues:
77
linters:
88
disable-all: true
99
enable:
10+
- copyloopvar
1011
- durationcheck
1112
- errcheck
12-
- exportloopref
1313
- forcetypeassert
1414
- godot
1515
- gofmt
1616
- gosimple
17+
- govet
1718
- ineffassign
1819
- makezero
1920
- misspell
@@ -24,4 +25,4 @@ linters:
2425
- unconvert
2526
- unparam
2627
- unused
27-
- vet
28+

0 commit comments

Comments
 (0)