use Go 1.22 range over integers syntax #9639
Annotations
10 errors
lint:
test/e2e/deployment.go#L988
cannot range over n (variable of type int) (typecheck)
|
lint:
internal/featuretests/v3/route_test.go#L991
cannot range over 100 (untyped int constant) (typecheck)
|
lint:
internal/sorter/sorter.go#L264
cannot range over len(lhsHeaderMatchConditions) (value of type int) (typecheck)
|
lint:
internal/sorter/sorter.go#L274
cannot range over len(lhs.QueryParamMatchConditions) (value of type int) (typecheck)
|
lint:
internal/sorter/sorter_test.go#L723
cannot range over 10 (untyped int constant) (typecheck)
|
lint:
internal/xdscache/v3/route_test.go#L24
"github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ext_authz/v3" imported as envoy_filter_http_ext_authz_v3 and not used (typecheck)
|
lint:
test/e2e/bench/bench_test.go#L293
cannot range over numServices (variable of type int) (typecheck)
|
lint:
test/e2e/gateway/response_header_modifier_test.go#L97
cannot range over 20 (untyped int constant) (typecheck)
|
lint:
test/e2e/httpproxy/cookie_rewrite_test.go#L393
cannot range over 20 (untyped int constant) (typecheck)
|
lint:
test/e2e/incluster/memory_usage_test.go#L56
cannot range over numChildren (untyped int constant 100) (typecheck)
|