Skip to content

Commit

Permalink
Upgrade linter version
Browse files Browse the repository at this point in the history
  • Loading branch information
lindenmckenzie committed Jul 4, 2024
1 parent 7280cdf commit f29bd22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
19 changes: 2 additions & 17 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 10m
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 20
gocognit:
min-complexity: 42
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
Expand All @@ -41,9 +35,6 @@ linters-settings:
- ifElseChain
- octalLiteral
- hugeParam
funlen:
# lines: 100
# statements: 100

linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
Expand Down Expand Up @@ -75,17 +66,11 @@ linters:

issues:
exclude-rules:
- path: _test\.go
- path: (features/.*|_test)\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- revive
new: false

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.43.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"
4 changes: 2 additions & 2 deletions ci/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ image_resource:
type: docker-image
source:
repository: golangci/golangci-lint
tag: v1.50
tag: v1.57.2

inputs:
- name: dp-search-scrubber-api

run:
path: dp-search-scrubber-api/ci/scripts/lint.sh
path: dp-search-scrubber-api/ci/scripts/lint.sh

0 comments on commit f29bd22

Please sign in to comment.