Skip to content

Commit 4ede36c

Browse files
committed
feat: add golangci-lint configuration and Traefik plugin icon
1 parent 2bc3cee commit 4ede36c

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

.assets/logo.png

8.94 KB
Loading

.golangci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
run:
2+
timeout: 3m
3+
skip-files: []
4+
skip-dirs: []
5+
6+
linters-settings:
7+
govet:
8+
enable-all: true
9+
disable:
10+
- fieldalignment
11+
golint:
12+
min-confidence: 0
13+
gocyclo:
14+
min-complexity: 12
15+
goconst:
16+
min-len: 5
17+
min-occurrences: 4
18+
misspell:
19+
locale: US
20+
funlen:
21+
lines: -1
22+
statements: 50
23+
godox:
24+
keywords:
25+
- FIXME
26+
gofumpt:
27+
extra-rules: true
28+
29+
linters:
30+
enable-all: true
31+
disable:
32+
- deadcode # deprecated
33+
- exhaustivestruct # deprecated
34+
- golint # deprecated
35+
- ifshort # deprecated
36+
- interfacer # deprecated
37+
- maligned # deprecated
38+
- nosnakecase # deprecated
39+
- scopelint # deprecated
40+
- scopelint # deprecated
41+
- structcheck # deprecated
42+
- varcheck # deprecated
43+
- sqlclosecheck # not relevant (SQL)
44+
- rowserrcheck # not relevant (SQL)
45+
- execinquery # not relevant (SQL)
46+
- cyclop # duplicate of gocyclo
47+
- bodyclose # Too many false positives: https://github.com/timakin/bodyclose/issues/30
48+
- dupl
49+
- testpackage
50+
- tparallel
51+
- paralleltest
52+
- nlreturn
53+
- wsl
54+
- exhaustive
55+
- exhaustruct
56+
- goerr113
57+
- wrapcheck
58+
- ifshort
59+
- noctx
60+
- lll
61+
- gomnd
62+
- forbidigo
63+
- varnamelen
64+
65+
issues:
66+
exclude-use-default: false
67+
max-per-linter: 0
68+
max-same-issues: 0
69+
exclude: []
70+
exclude-rules:
71+
- path: (.+)_test.go
72+
linters:
73+
- goconst
74+
- funlen
75+
- godot

.traefik.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Traefik plugin manifest for tianji plugin
22
displayName: Tianji Plugin
33
type: middleware
4+
iconPath: .assets/logo.png
45
import: github.com/msgbyte/traefik-tianji-plugin
56

67
summary: 'A Traefik plugin for Tianji analytics integration'

0 commit comments

Comments
 (0)