Skip to content

Commit 67a598b

Browse files
committed
Mock
1 parent 9e1ba3c commit 67a598b

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed

.golangci.yml

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,30 @@
1-
version: "2"
1+
run:
2+
# timeout for analysis, e.g. 30s, 5m, default is 1m
3+
timeout: 5m
24
linters:
35
enable:
6+
#- golint
7+
#- interfacer
8+
- unconvert
9+
#- dupl
410
- goconst
11+
- gofmt
512
- misspell
13+
- unparam
614
- nakedret
715
- prealloc
816
- revive
9-
- unconvert
10-
- unparam
11-
settings:
12-
misspell:
13-
locale: US
14-
revive:
15-
rules:
16-
- name: redundant-build-tag
17-
exclusions:
18-
generated: lax
17+
#- gosec
18+
linters-settings:
19+
misspell:
20+
locale: US
21+
revive:
1922
rules:
20-
- path: (.+)\.go$
21-
text: G104
22-
paths:
23-
- third_party$
24-
- builtin$
25-
- examples$
23+
- name: redundant-build-tag
2624
issues:
27-
max-issues-per-linter: 0
2825
max-same-issues: 0
29-
formatters:
30-
enable:
31-
- gofmt
32-
exclusions:
33-
generated: lax
34-
paths:
35-
- third_party$
36-
- builtin$
37-
- examples$
26+
max-issues-per-linter: 0
27+
exclude-use-default: false
28+
exclude:
29+
# gosec: Duplicated errcheck checks
30+
- G104

database/driver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (m *mockDriver) Close() error {
2828
return nil
2929
}
3030

31-
func (m *mockDriver) AddTriggers(t map[string]func(m Driver, detail interface{}) error) {}
31+
func (m *mockDriver) AddTriggers(t map[string]func(detail interface{}) error) {}
3232

3333
func (m *mockDriver) Trigger(name string, detail interface{}) error {
3434
return nil

0 commit comments

Comments
 (0)