Skip to content

refact: remove unused struct fields, enable related linter #5615

refact: remove unused struct fields, enable related linter

refact: remove unused struct fields, enable related linter #5615

Triggered via pull request November 27, 2024 10:48
@mmetcmmetc
synchronize #3334
lint-unused
Status Failure
Total duration 9m 0s
Artifacts

go-tests-windows.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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.