Skip to content

Commit 60fa312

Browse files
committed
feat: add config
1 parent 91ffb73 commit 60fa312

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/.golangci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
linters-settings:
2+
dupl:
3+
threshold: 100
4+
goconst:
5+
min-len: 2
6+
min-occurrences: 2
7+
goimports:
8+
local-prefixes: github.com/golangci/golangci-lint
9+
revive:
10+
ignore-generated-header: false
11+
confidence: 0.3
12+
govet:
13+
check-shadowing: true
14+
lll:
15+
line-length: 120
16+
misspell:
17+
locale: US
18+
ignore-words: []
19+
20+
linters:
21+
disable-all: true
22+
enable:
23+
- bodyclose
24+
- deadcode
25+
- dogsled
26+
- dupl
27+
- errcheck
28+
- goconst
29+
- gofmt
30+
- goimports
31+
- revive
32+
- govet
33+
- ineffassign
34+
- misspell
35+
- exportloopref
36+
- staticcheck
37+
- structcheck
38+
- unconvert
39+
- unused
40+
- varcheck
41+
- whitespace
42+
43+
issues:
44+
exclude:
45+
- declaration of "(err|ctx)" shadows declaration at
46+
- echo
47+
exclude-rules:
48+
- path: _test\.go
49+
linters:
50+
- dupl
51+
- gomnd
52+
53+
service:
54+
golangci-lint-version: 1.41.x
55+
prepare:
56+
- echo "here I can run custom commands, but no preparation needed for this repo"

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- This is a template. Please rewrite to the necessary contents when creating the PR. -->
2+
<!-- If there is an issue, enter it. -->
3+
- Closes #XXX
4+
5+
<!-- ## Overview -->
6+
<!-- Please write the purpose of this PR and the outline of implementation. -->

0 commit comments

Comments
 (0)