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

feature: Add linter to PR build pipeline #330

Closed
3 of 4 tasks
patrickpichler opened this issue Apr 25, 2023 · 1 comment · Fixed by #333 or #335
Closed
3 of 4 tasks

feature: Add linter to PR build pipeline #330

patrickpichler opened this issue Apr 25, 2023 · 1 comment · Fixed by #333 or #335

Comments

@patrickpichler
Copy link
Contributor

Checklist:

  • I've searched for similar issues and couldn't find anything matching
  • I've discussed this feature in the #k8sgpt slack channel

Is this feature request related to a problem?

  • Yes
  • No

There are a few subtle bugs introduced to the main branch, which could have been prevented
by letting a linter run before merging PRs.

Describe the solution you'd like

A own workflow for running a linter such as golangci-lint should be introduced,
which runs for PRs. This should catch a large amount of easy to avoid issues.

Benefits for the project and its users

Less easy to avoid bugs, as already caught in an automated way in the PR.

Potential drawbacks

There could be some false-positive findings by the linter, which would end up in some noise on the PR.

Additional context

@patrickpichler
Copy link
Contributor Author

Please assign the issue to me 🙂

patrickpichler pushed a commit to patrickpichler/k8sgpt that referenced this issue Apr 25, 2023
In order to catch a variaty of small and quick to happen mistakes, there
is now an additional action in place which runs a linter on the PR
content.

fixes k8sgpt-ai#330
patrickpichler pushed a commit to patrickpichler/k8sgpt that referenced this issue Apr 25, 2023
In order to catch a variaty of small and quick to happen mistakes, there
is now an additional action in place which runs a linter on the PR
content.

fixes k8sgpt-ai#330

Signed-off-by: Patrick Pichler <git@patrickpichler.dev>
AlexsJones pushed a commit that referenced this issue Apr 25, 2023
In order to catch a variaty of small and quick to happen mistakes, there
is now an additional action in place which runs a linter on the PR
content.

fixes #330

Signed-off-by: Patrick Pichler <git@patrickpichler.dev>
Co-authored-by: Patrick Pichler <git@patrickpichler.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
1 participant