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 more linters #288

Merged
merged 12 commits into from
Dec 15, 2023
Merged

Conversation

k15r
Copy link
Contributor

@k15r k15r commented Dec 6, 2023

Description

Changes proposed in this pull request:

  • enable containedctx
  • enable testifylint
  • modify lint Makefile target to download a specific version of golangci-lint
  • introduce lint-fix Makefile target. This target runs golangci-lint with fixing enabled. Certain linters will not complain, but actually fix the issues. Run this target to gci and gofumpt your files
  • enable goerr113

Related issue(s)

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 6, 2023
@kyma-bot
Copy link

kyma-bot commented Dec 6, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 6, 2023
@kyma-bot kyma-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 7, 2023
@k15r k15r marked this pull request as ready for review December 7, 2023 08:59
@k15r k15r requested a review from a team as a code owner December 7, 2023 08:59
@k15r k15r requested a review from grischperl December 7, 2023 08:59
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 7, 2023
@k15r k15r requested a review from the1bit as a code owner December 14, 2023 15:06
@kyma-bot kyma-bot added the area/ci Issues or PRs related to CI related topics label Dec 14, 2023
@mfaizanse mfaizanse requested review from mfaizanse and removed request for grischperl December 15, 2023 07:58
@kyma-bot kyma-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 15, 2023
internal/controller/operator/eventing/eventmesh.go Outdated Show resolved Hide resolved
@@ -86,8 +86,8 @@ func TestNewDeployment(t *testing.T) {
container := findPublisherContainer(publisherName, *deployment)
assert.NotNil(t, container)

assert.Equal(t, fmt.Sprint(container.Name), publisherName)
assert.Equal(t, fmt.Sprint(container.Image), publisherConfig.Image)
assert.Equal(t, container.Name, publisherName)
Copy link
Member

Choose a reason for hiding this comment

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

(nit) Should we change assert by require?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that would change the behaviour of the test, so i avoided it

@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 15, 2023
@kyma-bot kyma-bot merged commit e0a307d into kyma-project:main Dec 15, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues or PRs related to CI related topics cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants