Skip to content

Commit

Permalink
chore(golangci): add quality parameters to golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
jptosso committed Nov 7, 2024
1 parent de409e3 commit 04f5589
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
run:
deadline: 5m
run: {}

linters:
disable-all: true
Expand All @@ -15,8 +14,20 @@ linters:
- goimports
- gofmt
- gocritic
- gocyclo
- funlen
issues:
exclude-rules:
- path: magefile\.go
linters:
- deadcode
- deadcode
linters-settings:
gocyclo:
# Minimal code complexity to report.
# Default: 30 (but we recommend 10-20)
min-complexity: 10
errcheck:
# Report about not checking of errors in type assertions: `a := b.(MyStruct)`.
# Such cases aren't reported by default.
# Default: false
check-type-assertions: true

0 comments on commit 04f5589

Please sign in to comment.