Skip to content

Commit 325daa7

Browse files
committed
Apply go fmt ./...
1 parent 4e7c87e commit 325daa7

File tree

22 files changed

+102
-112
lines changed

22 files changed

+102
-112
lines changed

.golangci.yaml

Lines changed: 62 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@ run:
55
linters:
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$
11391
issues:
11492
max-same-issues: 0
11593
new-from-rev: HEAD~1
11694
new: false
11795
formatters:
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$

bridge/matrix/matrix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

gateway/bridgemap/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !noapi
12
// +build !noapi
23

34
package bridgemap

gateway/bridgemap/bdiscord.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !nodiscord
12
// +build !nodiscord
23

34
package bridgemap

gateway/bridgemap/birc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !noirc
12
// +build !noirc
23

34
package bridgemap

gateway/bridgemap/bkeybase.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !nokeybase
12
// +build !nokeybase
23

34
package bridgemap

gateway/bridgemap/bmatrix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !nomatrix
12
// +build !nomatrix
23

34
package bridgemap

gateway/bridgemap/bmattermost.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !nomattermost
12
// +build !nomattermost
23

34
package bridgemap

gateway/bridgemap/bmsteams.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !nomsteams
12
// +build !nomsteams
23

34
package bridgemap

gateway/bridgemap/bmumble.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !nomumble
12
// +build !nomumble
23

34
package bridgemap

0 commit comments

Comments
 (0)