File tree Expand file tree Collapse file tree 22 files changed +102
-112
lines changed
Expand file tree Collapse file tree 22 files changed +102
-112
lines changed Original file line number Diff line number Diff line change 55linters :
66 default : all
77 disable :
8- - asasalint
9- - cyclop
10- - decorder
11- - depguard
12- - err113
13- - errname
14- - errorlint
15- - exhaustive
16- - exhaustruct
17- - forbidigo
18- - gochecknoglobals
19- - godot
20- - godox
21- - goheader
22- - gomoddirectives
23- - grouper
24- - importas
25- - ireturn
26- - lll
27- - maintidx
28- - makezero
29- - mnd
30- - nlreturn
31- - noctx
32- - paralleltest
33- - prealloc
34- - promlinter
35- - revive
36- - tagliatelle
37- - testifylint
38- - testpackage
39- - thelper
40- - tparallel
41- - varnamelen
42- - wrapcheck
43- - wsl
8+ - asasalint
9+ - cyclop
10+ - decorder
11+ - depguard
12+ - err113
13+ - errname
14+ - errorlint
15+ - exhaustive
16+ - exhaustruct
17+ - forbidigo
18+ - gochecknoglobals
19+ - godot
20+ - godox
21+ - goheader
22+ - gomoddirectives
23+ - grouper
24+ - importas
25+ - ireturn
26+ - lll
27+ - maintidx
28+ - makezero
29+ - mnd
30+ - nlreturn
31+ - noctx
32+ - paralleltest
33+ - prealloc
34+ - promlinter
35+ - revive
36+ - tagliatelle
37+ - testifylint
38+ - testpackage
39+ - thelper
40+ - tparallel
41+ - varnamelen
42+ - wrapcheck
43+ - wsl
4444 settings :
4545 dupl :
4646 threshold : 150
@@ -52,40 +52,18 @@ linters:
5252 min-occurrences : 3
5353 gocritic :
5454 enabled-checks :
55- - appendAssign
56- - assignOp
57- - boolExprSimplify
58- - builtinShadow
59- - captLocal
60- - caseOrder
61- - commentedOutImport
62- - defaultCaseOrder
63- - dupArg
64- - dupBranchBody
65- - dupCase
66- - dupSubExpr
67- - elseif
68- - emptyFallthrough
69- - ifElseChain
70- - importShadow
71- - indexAlloc
72- - methodExprCall
73- - nestingReduce
74- - offBy1
75- - ptrToRefParam
76- - regexpMust
77- - singleCaseSwitch
78- - sloppyLen
79- - switchTrue
80- - typeSwitchVar
81- - typeUnparen
82- - underef
83- - unlambda
84- - unnecessaryBlock
85- - unslice
86- - valSwap
87- - wrapperFunc
88- - yodaStyleExpr
55+ - boolExprSimplify
56+ - builtinShadow
57+ - commentedOutImport
58+ - emptyFallthrough
59+ - importShadow
60+ - indexAlloc
61+ - methodExprCall
62+ - nestingReduce
63+ - ptrToRefParam
64+ - typeUnparen
65+ - unnecessaryBlock
66+ - yodaStyleExpr
8967 gocyclo :
9068 min-complexity : 15
9169 lll :
@@ -102,32 +80,32 @@ linters:
10280 exclusions :
10381 generated : lax
10482 presets :
105- - comments
106- - common-false-positives
107- - legacy
108- - std-error-handling
83+ - comments
84+ - common-false-positives
85+ - legacy
86+ - std-error-handling
10987 paths :
110- - third_party$
111- - builtin$
112- - examples$
88+ - third_party$
89+ - builtin$
90+ - examples$
11391issues :
11492 max-same-issues : 0
11593 new-from-rev : HEAD~1
11694 new : false
11795formatters :
11896 enable :
119- - gofmt
120- - gofumpt
121- - goimports
97+ - gofmt
98+ - gofumpt
99+ - goimports
122100 settings :
123101 gofmt :
124102 simplify : true
125103 goimports :
126104 local-prefixes :
127- - github.com
105+ - github.com
128106 exclusions :
129107 generated : lax
130108 paths :
131- - third_party$
132- - builtin$
133- - examples$
109+ - third_party$
110+ - builtin$
111+ - examples$
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import (
1010 "time"
1111
1212 "image"
13+ _ "image/gif"
1314 _ "image/jpeg"
1415 _ "image/png"
15- _ "image/gif"
1616
1717 "github.com/42wim/matterbridge/bridge"
1818 "github.com/42wim/matterbridge/bridge/config"
Original file line number Diff line number Diff line change 1+ //go:build !noapi
12// +build !noapi
23
34package bridgemap
Original file line number Diff line number Diff line change 1+ //go:build !nodiscord
12// +build !nodiscord
23
34package bridgemap
Original file line number Diff line number Diff line change 1+ //go:build !noirc
12// +build !noirc
23
34package bridgemap
Original file line number Diff line number Diff line change 1+ //go:build !nokeybase
12// +build !nokeybase
23
34package bridgemap
Original file line number Diff line number Diff line change 1+ //go:build !nomatrix
12// +build !nomatrix
23
34package bridgemap
Original file line number Diff line number Diff line change 1+ //go:build !nomattermost
12// +build !nomattermost
23
34package bridgemap
Original file line number Diff line number Diff line change 1+ //go:build !nomsteams
12// +build !nomsteams
23
34package bridgemap
Original file line number Diff line number Diff line change 1+ //go:build !nomumble
12// +build !nomumble
23
34package bridgemap
You can’t perform that action at this time.
0 commit comments