Skip to content

Commit 68c224c

Browse files
authored
*: bump linter v1.62.2 (#3418)
Bump linter category: feature ticket: none
1 parent 8981a5a commit 68c224c

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: golangci-lint
2020
uses: golangci/golangci-lint-action@v6
2121
with:
22-
version: v1.62.0
22+
version: v1.62.2
2323
- name: notify failure
2424
if: failure() && github.ref == 'refs/heads/main'
2525
env:

.golangci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ linters:
165165
- gocyclo
166166
- godot
167167
- godox
168-
- gomnd
169168
- gomoddirectives
170169
- inamedparam
171170
- interfacebloat
@@ -182,6 +181,4 @@ linters:
182181
- tagliatelle
183182
- varnamelen
184183
- wsl
185-
# Deprecated
186-
- goerr113
187-
- execinquery
184+
- err113

.pre-commit/run_linter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
VERSION="1.62.0"
3+
VERSION="1.62.2"
44

55
if ! command -v golangci-lint &> /dev/null
66
then

cluster/definition.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,15 +359,15 @@ func (d Definition) SetDefinitionHashes() (Definition, error) {
359359
return Definition{}, errors.Wrap(err, "config hash")
360360
}
361361

362-
d.ConfigHash = configHash[:] //nolint: revive // okay to assign to by-value receiver as we return the struct
362+
d.ConfigHash = configHash[:]
363363

364364
// Marshal definition hashDefinition
365365
defHash, err := hashDefinition(d, false)
366366
if err != nil {
367367
return Definition{}, errors.Wrap(err, "definition hashDefinition")
368368
}
369369

370-
d.DefinitionHash = defHash[:] //nolint: revive // okay to assign to by-value receiver as we return the struct
370+
d.DefinitionHash = defHash[:]
371371

372372
return d, nil
373373
}

cluster/lock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (l Lock) SetLockHash() (Lock, error) {
123123
return Lock{}, err
124124
}
125125

126-
l.LockHash = lockHash[:] //nolint: revive // okay to assign to by-value receiver as we return the struct
126+
l.LockHash = lockHash[:]
127127

128128
return l, nil
129129
}

0 commit comments

Comments
 (0)