Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golangci-lint: Add linter configuration and GH action #53

Merged
merged 3 commits into from
Dec 17, 2023

Conversation

mjtrangoni
Copy link
Contributor

Hi @vadimkim,

This PR adds a simple golangci-lint action run, adding a custom configuration for this project.

I tried to keep it simple, so no opinionated change was applied.

Signed-off-by: Mario Trangoni <[email protected]>
See,
  Running [/home/runner/golangci-lint-1.55.2-linux-amd64/golangci-lint run --out-format=github-actions --timeout=30m] in [] ...
  Error: paramTypeCombine: func(fqdn string, domain string) string could be replaced with func(fqdn, domain string) string (gocritic)
  Error: paramTypeCombine: func(url string, method string, body io.Reader, config internal.Config) ([]byte, error) could be replaced with func(url, method string, body io.Reader, config internal.Config) ([]byte, error) (gocritic)
  Error: ptrToRefParam: consider `secretData' to be of non-pointer type (gocritic)
  Error: sprintfQuotedString: use %q instead of "%s" for quoted strings (gocritic)
  Error: line is 129 characters (lll)
  Error: should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)

Signed-off-by: Mario Trangoni <[email protected]>
@mjtrangoni mjtrangoni changed the title WIP: golangci-lint: Add linter configuration and GH action golangci-lint: Add linter configuration and GH action Dec 12, 2023
@vadimkim vadimkim merged commit d4b5c33 into vadimkim:master Dec 17, 2023
@mjtrangoni mjtrangoni deleted the add-golangci-lint branch December 17, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants