Skip to content
Snippets Groups Projects
Commit 0dc768e5 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/PRXS-2953-ConfigureLinter' into 'master'

Обновлена конфигурация golangci-lint

See merge request perxis/perxis-go!442
parents 076fdd0b 433797d0
No related branches found
No related tags found
No related merge requests found
...@@ -284,7 +284,7 @@ linters: ...@@ -284,7 +284,7 @@ linters:
- tenv # detects using os.Setenv instead of t.Setenv since Go1.17 - tenv # detects using os.Setenv instead of t.Setenv since Go1.17
- testableexamples # checks if examples are testable (have an expected output) - testableexamples # checks if examples are testable (have an expected output)
- testifylint # checks usage of github.com/stretchr/testify - testifylint # checks usage of github.com/stretchr/testify
- testpackage # makes you use a separate _test package #- testpackage # makes you use a separate _test package
- unconvert # removes unnecessary type conversions - unconvert # removes unnecessary type conversions
- unparam # reports unused function parameters - unparam # reports unused function parameters
- usestdlibvars # detects the possibility to use variables/constants from the Go standard library - usestdlibvars # detects the possibility to use variables/constants from the Go standard library
...@@ -351,4 +351,14 @@ issues: ...@@ -351,4 +351,14 @@ issues:
- goconst - goconst
- gosec - gosec
- noctx - noctx
- wrapcheck - wrapcheck
\ No newline at end of file - mnd
- path: "_middleware\\.go"
linters:
- nonamedreturns
- path: "test/.*\\.go"
linters:
- mnd
- text: "shadow: declaration of \"(err|ctx)\" shadows declaration at"
linters:
- govet
\ No newline at end of file
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