refact: remove unused struct fields, enable related linter #5615
go-tests-windows.yml
on: pull_request
Build + tests
8m 48s
Annotations
5 errors
Build + tests:
pkg/acquisition/modules/appsec/appsec_runner_test.go#L128
unknown field expected_load_ok in struct literal of type struct{name string; inband_rules []appsec_rule.CustomRule; outofband_rules []appsec_rule.CustomRule; inband_native_rules []string; outofband_native_rules []string; on_load []appsec.Hook; pre_eval []appsec.Hook; post_eval []appsec.Hook; on_match []appsec.Hook; BouncerBlockedHTTPCode int; UserBlockedHTTPCode int; UserPassedHTTPCode int; DefaultRemediation string; DefaultPassAction string; input_request appsec.ParsedRequest; afterload_asserts func(runner AppsecRunner); output_asserts func(events []"github.com/crowdsecurity/crowdsec/pkg/types".Event, responses []appsec.AppsecTempResponse, appsecResponse appsec.BodyResponse, statusCode int)}
|
Build + tests:
pkg/acquisition/modules/appsec/appsec_runner_test.go#L135
unknown field expected_load_ok in struct literal of type struct{name string; inband_rules []appsec_rule.CustomRule; outofband_rules []appsec_rule.CustomRule; inband_native_rules []string; outofband_native_rules []string; on_load []appsec.Hook; pre_eval []appsec.Hook; post_eval []appsec.Hook; on_match []appsec.Hook; BouncerBlockedHTTPCode int; UserBlockedHTTPCode int; UserPassedHTTPCode int; DefaultRemediation string; DefaultPassAction string; input_request appsec.ParsedRequest; afterload_asserts func(runner AppsecRunner); output_asserts func(events []"github.com/crowdsecurity/crowdsec/pkg/types".Event, responses []appsec.AppsecTempResponse, appsecResponse appsec.BodyResponse, statusCode int)}
|
Build + tests:
pkg/acquisition/modules/appsec/appsec_test.go#L98
test.expected_load_ok undefined (type appsecRuleTest has no field or method expected_load_ok)
|
Build + tests:
pkg/acquisition/modules/appsec/appsec_test.go#L103
test.expected_load_ok undefined (type appsecRuleTest has no field or method expected_load_ok)
|
Build + tests
Process completed with exit code 1.
|