File tree 4 files changed +57
-2
lines changed
4 files changed +57
-2
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,11 @@ go.work
36
36
37
37
# Built Visual Studio Code Extensions
38
38
* .vsix
39
+
40
+ * .exe
41
+ * .test
42
+ * .prof
43
+ * .test
44
+ * .out
45
+ * .txt
46
+ cover.html
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ func main() {
76
76
77
77
go func () {
78
78
if err := echo .Start (":9080" ); err != nil {
79
- log .Fatalf ("Error starting Server: " , err )
79
+ log .Fatal ("Error starting Server" , err )
80
80
}
81
81
}()
82
82
Original file line number Diff line number Diff line change
1
+ linters :
2
+ disable-all : true
3
+ enable :
4
+ - deadcode
5
+ - errcheck
6
+ - gosimple
7
+ - govet
8
+ - ineffassign
9
+ - staticcheck
10
+ - structcheck
11
+ - typecheck
12
+ - unused
13
+ - varcheck
14
+ - asciicheck
15
+ - bodyclose
16
+ - dogsled
17
+ - exhaustive
18
+ - exportloopref
19
+ - gocognit
20
+ - goconst
21
+ - gofmt
22
+ - goheader
23
+ - goimports
24
+ - gosec
25
+ - misspell
26
+ - nakedret
27
+ - nestif
28
+ - noctx
29
+ - rowserrcheck
30
+ - sqlclosecheck
31
+ - unconvert
32
+ - unparam
33
+ - whitespace
34
+
35
+ issues :
36
+ exclude :
37
+ - " composite literal uses unkeyed fields"
38
+ exclude-rules :
39
+ - path : _test\.go
40
+ linters :
41
+ - gosec
42
+ - noctx
43
+ - unparam
44
+ - bodyclose
45
+ - path : fixtures.go
46
+ linters :
47
+ - gosec
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ func RegisterNotificationHandler[TEvent any](handler NotificationHandler[TEvent]
65
65
eventType := reflect .TypeOf (event )
66
66
67
67
handlers , exist := notificationHandlersRegistrations [eventType ]
68
- if exist == false {
68
+ if ! exist {
69
69
notificationHandlersRegistrations [eventType ] = []interface {}{handler }
70
70
return nil
71
71
}
You can’t perform that action at this time.
0 commit comments