Skip to content

Commit 0115adf

Browse files
authored
chore(.golangci.yaml): make gocyclo slightly more sensitive (coder#8383)
1 parent d19e679 commit 0115adf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.golangci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ linters-settings:
115115
local-prefixes: coder.com,cdr.dev,go.coder.com,github.com/cdr,github.com/coder
116116

117117
gocyclo:
118-
min-complexity: 50
118+
# goal: 30
119+
min-complexity: 47
119120

120121
importas:
121122
no-unaliased: true

scripts/apitypings/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ type TypescriptType struct {
615615
// Eg:
616616
//
617617
// []byte returns "string"
618+
//
619+
//nolint:gocyclo
618620
func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
619621
switch ty := ty.(type) {
620622
case *types.Basic:

0 commit comments

Comments
 (0)