Skip to content

Commit

Permalink
chore(.golangci.yaml): make gocyclo slightly more sensitive (coder#8383)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammario authored Jul 8, 2023
1 parent d19e679 commit 0115adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ linters-settings:
local-prefixes: coder.com,cdr.dev,go.coder.com,github.com/cdr,github.com/coder

gocyclo:
min-complexity: 50
# goal: 30
min-complexity: 47

importas:
no-unaliased: true
Expand Down
2 changes: 2 additions & 0 deletions scripts/apitypings/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ type TypescriptType struct {
// Eg:
//
// []byte returns "string"
//
//nolint:gocyclo
func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
switch ty := ty.(type) {
case *types.Basic:
Expand Down

0 comments on commit 0115adf

Please sign in to comment.