Switch to a parser-based approach #13
Annotations
10 errors and 1 warning
golangci-lint:
flag_def.go#L119
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"%q (defined on %q) is not a valid flag key; flag keys must start with --, or - for short flags\", key, strings.Join(path, \" \"))" (err113)
|
golangci-lint:
flag_def.go#L122
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"%q (defined on %q) is not a valid short flag key; short flag keys must be one letter or number\", key, strings.Join(path, \" \"))" (err113)
|
golangci-lint:
flag_def.go#L125
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"%q (defined on %q) is not a valid flag key; you must have at least one letter or number\", key, strings.Join(path, \" \"))" (err113)
|
golangci-lint:
flag_def.go#L127
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"%q (defined on %q) is not a valid flag key; flag keys can only contain letters, numbers, -, _, and :, and must start with a letter or number\", key, strings.Join(path, \" \"))" (err113)
|
golangci-lint:
flag_reflect_number.go#L25
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected kind %s\", target.Kind())" (err113)
|
golangci-lint:
flag_reflect_number.go#L44
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected kind %s\", target.Kind())" (err113)
|
golangci-lint:
flag_reflect_number.go#L63
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected kind %s\", target.Kind())" (err113)
|
golangci-lint:
flag_reflect_number.go#L82
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected kind %s\", target.Kind())" (err113)
|
golangci-lint:
flag_reflect_number.go#L95
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected kind %s\", target.Kind())" (err113)
|
golangci-lint:
flag_reflect_number.go#L108
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected kind %s\", target.Kind())" (err113)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading