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

Enable trivial golangci lints #882

Merged
merged 9 commits into from
Apr 22, 2024
Merged

Enable trivial golangci lints #882

merged 9 commits into from
Apr 22, 2024

Conversation

toshipp
Copy link
Contributor

@toshipp toshipp commented Apr 11, 2024

This resolves trivially fixable lints.
issue: #853

This was introduced to generate certs but we now used cert-manager.

Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
The default linters are conformed, omit disable-all: true. Note that
staticcheck is enabled by default, but it runs as a dedicated command to
ignore a specific error, so disable it explicitly.

Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Deduplicate test code with table test.

Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Note that settings flag is ignored for readability. URL in comments is
also ignored.

Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
@toshipp toshipp changed the title Enable golangci lint Enable trivial golangci lints Apr 18, 2024
@toshipp toshipp marked this pull request as ready for review April 18, 2024 09:26
@toshipp toshipp requested a review from a team as a code owner April 18, 2024 09:26
@llamerada-jp llamerada-jp merged commit 86e72f5 into main Apr 22, 2024
24 checks passed
@llamerada-jp llamerada-jp deleted the enable-golangci-lint branch April 22, 2024 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants