refact: remove unused struct fields, enable related linter #5615
Annotations
5 errors
Run 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)}
|
Run 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)}
|
Run tests:
pkg/acquisition/modules/appsec/appsec_test.go#L98
test.expected_load_ok undefined (type appsecRuleTest has no field or method expected_load_ok)
|
Run tests:
pkg/acquisition/modules/appsec/appsec_test.go#L103
test.expected_load_ok undefined (type appsecRuleTest has no field or method expected_load_ok)
|
Run tests
Process completed with exit code 1.
|
Loading