sanketsaurav / spinnaker-operator

Only the first constant has an explicit type SCC-SA9004
Anti-pattern
Major
4 years ago4 years old
only the first constant in this group has an explicit type
 8type AccountType string
 9
10const (
11	KubernetesAccountType AccountType = "Kubernetes"12	AWSAccountType                    = "AWS"
13)
14
only the first constant in this group has an explicit type
15type Authorization string
16
17const (
18	Read    Authorization = "READ"19	Write                 = "WRITE"
20	Execute               = "EXECUTE"
21)