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

Fix linting errors #14

Merged
merged 3 commits into from
Sep 12, 2023
Merged

Fix linting errors #14

merged 3 commits into from
Sep 12, 2023

Conversation

kke
Copy link
Contributor

@kke kke commented Sep 12, 2023

  • pkg/config/get.go:19:15: SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (staticcheck)
  • pkg/docker/info.go:29:3: S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
  • pkg/cluster/formatter.go:96:2: SA4005: ineffective assignment to field writer.err (staticcheck)

S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)

Signed-off-by: Kimmo Lehto <[email protected]>
@kke kke added the chore label Sep 12, 2023
SA4005: ineffective assignment to field writer.err (staticcheck)

(function converted to pointer receiver and usage changed)

Signed-off-by: Kimmo Lehto <[email protected]>
SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (staticcheck)

Signed-off-by: Kimmo Lehto <[email protected]>
@kke kke marked this pull request as ready for review September 12, 2023 08:35
@kke kke merged commit 3c20068 into main Sep 12, 2023
2 checks passed
@kke kke deleted the fix-lint-errors branch September 12, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant