Skip to content

Commit bccc59a

Browse files
committed
chore: update linters
Signed-off-by: Valery Piashchynski <[email protected]>
1 parent 7ca4ca0 commit bccc59a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/linters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Linters
33
on: [push, pull_request]
44

55
jobs:
6-
golangci-lint:
6+
linters:
77
name: Golang-CI (lint)
88
runs-on: ubuntu-latest
99
steps:
@@ -18,6 +18,6 @@ jobs:
1818
- name: Run linter
1919
uses: golangci/[email protected] # Action page: <https://github.com/golangci/golangci-lint-action>
2020
with:
21-
version: v1.60 # without patch version
21+
version: v1.61 # without patch version
2222
only-new-issues: false # show only new issues if it's a pull request
2323
args: --timeout=10m --build-tags=race ./...

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ linters: # All available linters list: <https://golangci-lint.run/usage/linters/
3838
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
3939
- errorlint # find code that will cause problems with the error wrapping scheme introduced in Go 1.13
4040
- exhaustive # check exhaustiveness of enum switch statements
41-
- exportloopref # checks for pointers to enclosing loop variables
41+
- copyloopvar # Checks for using loop variables in function literal closures
4242
- gochecknoglobals # Checks that no globals are present in Go code
4343
- gochecknoinits # Checks that no init functions are present in Go code
4444
- gocognit # Computes and checks the cognitive complexity of functions

0 commit comments

Comments
 (0)