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

Implement lint/go command for local #4086

Merged
merged 1 commit into from
Dec 18, 2022
Merged

Implement lint/go command for local #4086

merged 1 commit into from
Dec 18, 2022

Conversation

knanao
Copy link
Member

@knanao knanao commented Dec 17, 2022

What this PR does / why we need it:
In fact, we have to fix all lint errors before using this command.
So let me fix all of them one by one in another PR.
https://github.com/pipe-cd/pipecd/runs/10154286748

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

lint/go:
@echo "Unimplemented"
ifeq ($(FIX),true)
docker run ${FLAGS} golangci/golangci-lint@${VERSION} golangci-lint run --fix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add --rm to remove the container after the job is done? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah true, I missed reading that part 👍

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement 👍

@knanao knanao merged commit 06aa5d8 into master Dec 18, 2022
@knanao knanao deleted the golang-lint branch December 18, 2022 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants