Skip to content

Commit 7d6c28d

Browse files
Danielius1922Daniel Adam
authored andcommitted
Update GitHub actions
golangci/golangci-lint-action: v5 -> v6
1 parent d8ca4ac commit 7d6c28d

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
@@ -26,7 +26,7 @@ jobs:
2626
- run: go version
2727

2828
- name: golangci-lint
29-
uses: golangci/golangci-lint-action@v5
29+
uses: golangci/golangci-lint-action@v6
3030
with:
3131
version: latest
3232
args: --timeout=5m

.golangci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ linters:
3737
- 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.
3838
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`.
3939
- 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.
40-
- execinquery # Execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds.
4140
- exportloopref # checks for pointers to enclosing loop variables
4241
- forcetypeassert # finds forced type assertions
4342
- gci # Gci control golang package import order and make it always deterministic.
@@ -99,22 +98,19 @@ linters:
9998
- cyclop # checks function and package cyclomatic complexity
10099
- depguard # Go linter that checks if package imports are in a list of acceptable packages
101100
- exhaustive # Check exhaustiveness of enum switch statements
102-
- exhaustivestruct # Checks if all struct's fields are initialized
103101
- exhaustruct # Checks if all structure fields are initialized.
104102
- forbidigo # Forbids identifiers
105103
- funlen # Tool for detection of long functions
106104
- gochecknoglobals # Checks that no globals are present in Go code
107105
- gochecknoinits # Checks that no init functions are present in Go code
108106
- godot # Check if comments end in a period
109107
- gomnd # An analyzer to detect magic numbers.
110-
- ifshort # Checks that your code uses short syntax for if-statements whenever possible
111108
- inamedparam # Reports interfaces with unnamed method parameters.
112109
- interfacebloat # A linter that checks the number of methods inside an interface
113110
- ireturn # Accept Interfaces, Return Concrete Types
114111
- lll # Reports long lines
115112
- maintidx # maintidx measures the maintainability index of each function.
116113
- makezero # Finds slice declarations with non-zero initial length
117-
- maligned # Tool to detect Go structs that would take less memory if their fields were sorted
118114
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity
119115
- nonamedreturns # Reports all named returns
120116
- paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test

0 commit comments

Comments
 (0)