chore(.golangci.yaml): make gocyclo slightly more sensitive (#8383)

This commit is contained in:
Ammar Bandukwala
2023-07-08 17:43:34 -05:00
committed by GitHub
parent d19e679c20
commit 0115adf9d7
2 changed files with 4 additions and 1 deletions

View File

@ -115,7 +115,8 @@ linters-settings:
local-prefixes: coder.com,cdr.dev,go.coder.com,github.com/cdr,github.com/coder local-prefixes: coder.com,cdr.dev,go.coder.com,github.com/cdr,github.com/coder
gocyclo: gocyclo:
min-complexity: 50 # goal: 30
min-complexity: 47
importas: importas:
no-unaliased: true no-unaliased: true

View File

@ -615,6 +615,8 @@ type TypescriptType struct {
// Eg: // Eg:
// //
// []byte returns "string" // []byte returns "string"
//
//nolint:gocyclo
func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) { func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
switch ty := ty.(type) { switch ty := ty.(type) {
case *types.Basic: case *types.Basic: