File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,19 @@ linters:
2323 - unparam
2424 - gocritic # org engineering bar — do not drop
2525 - gosec
26+ settings :
27+ gosec :
28+ excludes :
29+ # FP-prone rules newly enforced by golangci v2.12.2's bundled gosec.
30+ # Taint (G703/G704/G706) is nox's job once nox/taint-analysis is
31+ # verified; G115/G118/G204 are high-noise. Keep gosec's stable,
32+ # high-signal rules (creds, crypto, file perms).
33+ - G115 # integer overflow conversion
34+ - G118 # context cancellation in goroutine
35+ - G204 # subprocess with variable
36+ - G703 # path traversal via taint
37+ - G704 # SSRF via taint
38+ - G706 # taint flow
2639 exclusions :
2740 rules :
2841 # Tests legitimately use math/rand (deterministic fixtures, fuzz
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const (
5353// ParseMachineStruct parses a struct type into a MachineSchema.
5454// The struct must have an embedded MachineDef marker type.
5555func ParseMachineStruct (t reflect.Type ) (* MachineSchema , error ) {
56- if t .Kind () == reflect .Ptr {
56+ if t .Kind () == reflect .Pointer {
5757 t = t .Elem ()
5858 }
5959 if t .Kind () != reflect .Struct {
@@ -100,7 +100,7 @@ func ParseMachineStruct(t reflect.Type) (*MachineSchema, error) {
100100// parseStateField parses a struct field into a StateSchema.
101101func parseStateField (field reflect.StructField ) (* StateSchema , error ) {
102102 fieldType := field .Type
103- if fieldType .Kind () == reflect .Ptr {
103+ if fieldType .Kind () == reflect .Pointer {
104104 fieldType = fieldType .Elem ()
105105 }
106106
@@ -339,7 +339,7 @@ func parseTransition(s string) (TransitionSchema, error) {
339339
340340// isMarkerType checks if a type matches a marker type name.
341341func isMarkerType (t reflect.Type , markerName string ) bool {
342- if t .Kind () == reflect .Ptr {
342+ if t .Kind () == reflect .Pointer {
343343 t = t .Elem ()
344344 }
345345 return t .Name () == markerName
You can’t perform that action at this time.
0 commit comments