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

chore: Bump golangci-lint make and action #1346

Merged
merged 11 commits into from
Mar 4, 2024

Conversation

lindnerby
Copy link
Member

@lindnerby lindnerby commented Feb 26, 2024

Description

Changes proposed in this pull request:

  • Upgrade golangci-lint version used by make lint target to v1.56.2
  • Upgrade golangci-lint version used by GHA lint workflow to v1.56.2
  • Fix new gofumpt issues
  • Fix new sprintperf issues

Related issue(s)

@lindnerby lindnerby requested a review from a team as a code owner February 26, 2024 08:13
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 26, 2024
@kyma-bot kyma-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 29, 2024
@c-pius c-pius self-assigned this Mar 1, 2024
@@ -114,7 +114,7 @@ func (r *KymaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
status.InitConditions(kyma, r.SyncKymaEnabled(kyma), r.WatcherEnabled(kyma))

if kyma.SkipReconciliation() {
logger.V(log.DebugLevel).Info(fmt.Sprintf("skipping reconciliation for Kyma: %s", kyma.Name))
logger.V(log.DebugLevel).Info("skipping reconciliation for Kyma: " + kyma.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's surprising that the linter doesn't enforce consistent usage of the + operator. E.g., here we surround it with blanks whereas in the change in cmd/main.go we don't have blanks. Changing that in either way leads to linting errors 🤷🏻‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

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

I just checked out of curiosity. It depends on the number of arguments passed to the func. If it is one arg only, it enforces whitespace x + y, if it is more than one arg it enforces no whitespacex+y

Copy link
Member Author

@lindnerby lindnerby Mar 4, 2024

Choose a reason for hiding this comment

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

Curious, I know. 😄

@kyma-bot kyma-bot added the lgtm Looks good to me! label Mar 4, 2024
@kyma-bot kyma-bot merged commit 386e15e into kyma-project:main Mar 4, 2024
32 of 33 checks passed
@lindnerby lindnerby deleted the bump-linter-ver branch March 4, 2024 08:00
@c-pius c-pius assigned lindnerby and unassigned c-pius Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants