Skip to content

Commit acecb87

Browse files
committed
Chore(CI): update CI configs
Recent refactors allow golangci-lint to be a bit more aggressive in the Alpine build (CI jobs run in the Alpine VM). Also speed up Fedora's builds a bit.
1 parent df5c4d4 commit acecb87

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

.builds/fedora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ environment:
2121
MAKEFLAGS: --no-print-directory
2222
# fewer loops since we're running sanitizers, which slow things down.
2323
# run more loops in the openbsd manifest since that doesn't use sanitizers
24-
LOOPS: 64
24+
LOOPS: 48
2525
sources:
2626
- https://git.sr.ht/~seirdy/moac
2727
tasks:

.golangci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ issues:
88
path: _test.go
99
source: "`.*ß.*`"
1010
text: "ST1018" # we want unicode control chars in there.
11-
- linters: [paralleltest]
12-
path: _test.go
13-
# not all tests need to be parallelized
14-
text: 'missing the call to method parallel'
1511
- linters: [exhaustivestruct]
1612
path: _test.go
1713
- linters: [goerr113]
@@ -122,16 +118,16 @@ linters:
122118
- goerr113
123119
- ireturn
124120
- nilnil
125-
- paralleltest
121+
# - paralleltest # not always relevant
126122
# - scopelint # deprecated
127123
# - tenv # only for go117+
128124
# - maligned # deprecated
129125
# - golint # deprecated
130126
# - interfacer # deprecated
131127
linters-settings:
132128
cyclop:
133-
max-complexity: 10
134-
package-average: 6.5
129+
max-complexity: 9
130+
package-average: 5
135131
dupl:
136132
threshold: 40
137133
errcheck:
@@ -178,7 +174,7 @@ linters-settings:
178174
- name: bool-literal-in-expr
179175
- name: call-to-gc
180176
- name: cognitive-complexity
181-
arguments: [13]
177+
arguments: [10]
182178
- name: confusing-naming
183179
- name: confusing-results
184180
- name: constant-logical-expr
@@ -202,7 +198,7 @@ linters-settings:
202198
- name: function-result-limit
203199
arguments: [4]
204200
- name: function-length
205-
arguments: [24,0]
201+
arguments: [23, 0]
206202
- name: get-return
207203
- name: identical-branches
208204
- name: if-return

0 commit comments

Comments
 (0)