Skip to content
Snippets Groups Projects
Commit 1dd055d904e4 authored by Axel Prel's avatar Axel Prel
Browse files

enable forbidigo

excluding cmd since some commands legitimately use printing in the console
parent 0ac85576de99
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
# - exhaustruct # Checks if all struct's fields are initialized style, test v1.32.0 # - exhaustruct # Checks if all struct's fields are initialized style, test v1.32.0
- exptostd # Detects functions from golang.org/x/exp/ that can be replaced by std functions. [auto-fix] - exptostd # Detects functions from golang.org/x/exp/ that can be replaced by std functions. [auto-fix]
- fatcontext # Detects nested contexts in loops. performance 1.58.0 - fatcontext # Detects nested contexts in loops. performance 1.58.0
# - forbidigo # Forbids identifiers style v1.34.0 - forbidigo # Forbids identifiers style v1.34.0
- forcetypeassert # finds forced type assertions style v1.38.0 - forcetypeassert # finds forced type assertions style v1.38.0
# - funlen # Tool for detection of long functions complexity v1.18.0 # - funlen # Tool for detection of long functions complexity v1.18.0
- gci # Gci control golang package import order and make it always deterministic. format, import ✔ v1.30.0 - gci # Gci control golang package import order and make it always deterministic. format, import ✔ v1.30.0
...@@ -165,6 +165,9 @@ ...@@ -165,6 +165,9 @@
- path: 'cmd/|auth/|restapi/' - path: 'cmd/|auth/|restapi/'
linters: linters:
- lll - lll
- path: 'cmd'
linters:
- forbidigo
exclude-dirs: exclude-dirs:
- dependencies - dependencies
- restapi/operations - restapi/operations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment