Skip to content

Commit 758cee5

Browse files
Danielius1922Daniel Adam
authored andcommitted
Update GitHub actions
golangci/golangci-lint-action: v5 -> v6
1 parent 5d0ee35 commit 758cee5

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
check-latest: true
2828
- run: go version
2929
- name: golangci-lint
30-
uses: golangci/golangci-lint-action@v5
30+
uses: golangci/golangci-lint-action@v6
3131
with:
3232
version: latest
3333
args: --timeout=5m

.golangci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ linters:
3333
- errchkjson # Checks types passed to the json encoding functions. Reports unsupported types and optionally reports occasions, where the check for the returned error can be omitted.
3434
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`.
3535
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13.
36-
- execinquery # Execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds.
3736
- exportloopref # checks for pointers to enclosing loop variables
3837
- forcetypeassert # finds forced type assertions
3938
- gci # Gci control golang package import order and make it always deterministic.
@@ -98,21 +97,18 @@ linters:
9897
- cyclop # checks function and package cyclomatic complexity
9998
- depguard # Go linter that checks if package imports are in a list of acceptable packages
10099
- exhaustive # Check exhaustiveness of enum switch statements
101-
- exhaustivestruct # Checks if all struct's fields are initialized
102100
- exhaustruct # Checks if all structure fields are initialized.
103101
- forbidigo # Forbids identifiers
104102
- funlen # Tool for detection of long functions
105103
- gochecknoglobals # Checks that no globals are present in Go code
106104
- gochecknoinits # Checks that no init functions are present in Go code
107105
- godot # Check if comments end in a period
108106
- gomnd # An analyzer to detect magic numbers.
109-
- ifshort # Checks that your code uses short syntax for if-statements whenever possible
110107
- inamedparam # Reports interfaces with unnamed method parameters.
111108
- interfacebloat # A linter that checks the number of methods inside an interface
112109
- ireturn # Accept Interfaces, Return Concrete Types
113110
- lll # Reports long lines
114111
- maintidx # maintidx measures the maintainability index of each function.
115-
- maligned # Tool to detect Go structs that would take less memory if their fields were sorted
116112
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity
117113
- nonamedreturns # Reports all named returns
118114
- paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test

0 commit comments

Comments
 (0)