Skip to content

Set Non-Default User Agent for HTTP Requests #96

Set Non-Default User Agent for HTTP Requests

Set Non-Default User Agent for HTTP Requests #96

GitHub Actions / golangci failed Aug 8, 2024 in 0s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (2)

pkg/plugins/services/http/http.go|105| line is 144 characters (lll)
pkg/plugins/services/http/http.go|161| line is 144 characters (lll)

Filtered Findings (8)

pkg/runner/utils.go|36 col 12| Error return value of fmt.Scan is not checked (errcheck)
pkg/plugins/types.go|407| File is not gci-ed with --skip-generated -s standard -s default (gci)
pkg/runner/root.go|33 col 14| unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
pkg/plugins/services/http/http.go|97 col 22| unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
pkg/plugins/services/http/http.go|101 col 23| unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
pkg/plugins/services/http/http.go|153 col 25| unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
pkg/plugins/services/http/http.go|157 col 23| unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
pkg/plugins/services/ssh/ssh.go|234 col 32| unused-parameter: parameter 'user' seems to be unused, consider removing or renaming it as _ (revive)

Annotations

Check failure on line 105 in pkg/plugins/services/http/http.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] pkg/plugins/services/http/http.go#L105

line is 144 characters (lll)
Raw output
pkg/plugins/services/http/http.go:105: line is 144 characters (lll)
	req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36")

Check failure on line 161 in pkg/plugins/services/http/http.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] pkg/plugins/services/http/http.go#L161

line is 144 characters (lll)
Raw output
pkg/plugins/services/http/http.go:161: line is 144 characters (lll)
	req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36")