Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
golangci/golangci-lint-action: v5 -> v6
  • Loading branch information
Danielius1922 authored and Daniel Adam committed Jun 3, 2024
1 parent 2a95bd6 commit 6eed91a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- run: go version

- name: golangci-lint
uses: golangci/golangci-lint-action@v5
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m
9 changes: 0 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ linters:
- 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.
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`.
- 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.
- execinquery # Execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds.
- exportloopref # checks for pointers to enclosing loop variables
- forcetypeassert # finds forced type assertions
- gci # Gci control golang package import order and make it always deterministic.
Expand Down Expand Up @@ -88,22 +87,19 @@ linters:
- cyclop # checks function and package cyclomatic complexity
- depguard # Go linter that checks if package imports are in a list of acceptable packages
- exhaustive # Check exhaustiveness of enum switch statements
- exhaustivestruct # Checks if all struct's fields are initialized
- exhaustruct # Checks if all structure fields are initialized.
- forbidigo # Forbids identifiers
- funlen # Tool for detection of long functions
- gochecknoglobals # Checks that no globals are present in Go code
- gochecknoinits # Checks that no init functions are present in Go code
- godot # Check if comments end in a period
- gomnd # An analyzer to detect magic numbers.
- ifshort # Checks that your code uses short syntax for if-statements whenever possible
- inamedparam # Reports interfaces with unnamed method parameters.
- interfacebloat # A linter that checks the number of methods inside an interface
- ireturn # Accept Interfaces, Return Concrete Types
- lll # Reports long lines
- maintidx # maintidx measures the maintainability index of each function.
- makezero # Finds slice declarations with non-zero initial length
- maligned # Tool to detect Go structs that would take less memory if their fields were sorted
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity
- nonamedreturns # Reports all named returns
- paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test
Expand Down Expand Up @@ -145,11 +141,6 @@ issues:
linters:
- gocritic

- path: pkg/rand/rand.go
text: "G404: Use of weak random number generator \\(math/rand instead of crypto/rand\\)"
linters:
- gosec

- path: .*/client/conn.go
linters:
- godox
Expand Down
2 changes: 1 addition & 1 deletion pkg/rand/rand.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Rand struct {

func NewRand(seed int64) *Rand {
return &Rand{
src: rand.New(rand.NewSource(seed)),
src: rand.New(rand.NewSource(seed)), //nolint:gosec
}
}

Expand Down

0 comments on commit 6eed91a

Please sign in to comment.