Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ linters:
- ginkgolinter # [if you use ginkgo/gomega] enforces standards of using ginkgo and gomega
- gochecknoglobals # checks that no global variables exist
- cyclop # replaced by revive
- gocyclo # replaced by revive
- funlen # replaced by revive
- godox # TODO's are OK
- ireturn # It's OK
Expand All @@ -47,6 +48,7 @@ linters:
- goconst # finds repeated strings that could be replaced by a constant
- goheader # checks is file header matches to pattern
- gomodguard # [use more powerful depguard] allow and block lists linter for direct Go module dependencies
- gomoddirectives
- err113 # bad advice about dynamic errors
- lll # [replaced by golines] reports long lines
- mnd # detects magic numbers, duplicated by revive
Expand Down Expand Up @@ -98,6 +100,7 @@ linters:
errcheck:
# Report about not checking of errors in type assertions: `a := b.(MyStruct)`.
check-type-assertions: true
check-blank: true

exhaustive:
# Program elements to check for exhaustiveness.
Expand Down Expand Up @@ -177,14 +180,15 @@ linters:
- name: cognitive-complexity
arguments: [50]
- name: cyclomatic
severity: warning
arguments: [30]
arguments: [55]
- name: function-length
arguments: [150, 225]
- name: line-length-limit
arguments: [150]
- name: nested-structs
disabled: true
- name: max-public-structs
arguments: [10]

rowserrcheck:
# database/sql is always checked.
Expand Down Expand Up @@ -226,6 +230,7 @@ linters:
- dupl
- gosec
- godot
- govet # alignment
- noctx
- perfsprint
- revive
Expand Down