mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore(.golangci.yaml): make gocyclo slightly more sensitive (#8383)
This commit is contained in:
@ -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
|
||||||
|
@ -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:
|
||||||
|
Reference in New Issue
Block a user