File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -48,3 +48,6 @@ experimenting
48
48
49
49
# # CI assets
50
50
.templates
51
+
52
+ # # Taskfile
53
+ .task
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ linters:
53
53
- inamedparam # reports interfaces with unnamed method parameters
54
54
- interfacebloat # check for large interfaces
55
55
- intrange # find places where for loops could make use of an integer range
56
- - ireturn # Accept Interfaces, Return Concrete Types.
57
56
- lll # check for long lines
58
57
- maintidx # measures the maintainability index of each function
59
58
- mirror # reports wrong mirror patterns of bytes/strings usage
@@ -123,6 +122,7 @@ linters:
123
122
- mnd # too many detections
124
123
- cyclop # covered by gocyclo
125
124
- gochecknoglobals # there are many valid reasons for global variables, depending on the project
125
+ - ireturn # there are too many exceptions
126
126
127
127
linters-settings :
128
128
wsl :
@@ -139,6 +139,9 @@ linters-settings:
139
139
line-length : 140
140
140
tab-width : 1
141
141
142
+ nlreturn :
143
+ block-size : 2
144
+
142
145
exhaustive :
143
146
check-generated : false
144
147
default-signifies-exhaustive : true
Original file line number Diff line number Diff line change
1
+ # ┌───────────────────────────────────────────────────────────────────┐
2
+ # │ │
3
+ # │ IMPORTANT NOTE │
4
+ # │ │
5
+ # │ This file is synced with https://github.com/atomicgo/template │
6
+ # │ │
7
+ # │ Please apply all changes to the template repository │
8
+ # │ │
9
+ # └───────────────────────────────────────────────────────────────────┘
10
+
11
+ version : " 3"
12
+
13
+ tasks :
14
+ test :
15
+ desc : Run all tests
16
+ cmds :
17
+ - go test ./...
18
+ tdd :
19
+ desc : Test Driven Development - Watch tests
20
+ watch : true
21
+ sources :
22
+ - " **/*.go"
23
+ cmds :
24
+ - go test ./...
25
+
26
+ lint :
27
+ desc : Run all linters
28
+ cmds :
29
+ - go mod tidy
30
+ - wsl --allow-cuddle-declarations --force-err-cuddling --force-case-trailing-whitespace 3 --fix ./...
31
+ - golangci-lint run
You can’t perform that action at this time.
0 commit comments