Skip to content

Commit bb83487

Browse files
committed
Create application command
1 parent 81bada5 commit bb83487

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
run: make generate-mock
2323

2424
- name: Static Code Analysis
25-
uses: golangci/golangci-lint-action@v6
25+
uses: golangci/golangci-lint-action@v8
2626
with:
2727
version: latest

.golangci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Options for analysis running
2+
# More info could be found at https://golangci-lint.run/usage/configuration/
3+
run:
4+
# timeout for analysis, e.g. 30s, 5m, default is 1m
5+
timeout: 5m
6+
modules-download-mode: readonly
7+
8+
# List of useful linters could be found at https://github.com/golangci/awesome-go-linters
9+
linters:
10+
disable-all: true
11+
enable:
12+
- errcheck
13+
- copyloopvar
14+
- gofumpt
15+
- goimports
16+
- gosimple
17+
- govet
18+
- ineffassign
19+
- makezero
20+
- misspell
21+
- noctx
22+
- nolintlint
23+
- rowserrcheck
24+
- sqlclosecheck
25+
- staticcheck
26+
- unconvert
27+
- unused
28+
- wastedassign
29+
- gosec
30+
31+
linters-settings:
32+
staticcheck:
33+
# https://staticcheck.io/docs/options#checks
34+
checks: [ "all","-SA1019","-SA1029" ]
35+
gosec:
36+
excludes: [ "G204", "G301", "G302", "G304", "G306", "G601", "G101", "G407" ]
37+
exclude-generated: true
38+
exclude-test-files: true
39+
config:
40+
global:
41+
nosec: true
42+
43+
issues:
44+
exclude-use-default: false
45+
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
46+
max-issues-per-linter: 0
47+
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
48+
max-same-issues: 0

0 commit comments

Comments
 (0)