Skip to content

Disable the field alignment lint check#4560

Open
jinbum-kim wants to merge 2 commits intoray-project:masterfrom
jinbum-kim:chore/disable-fieldalignment-lint
Open

Disable the field alignment lint check#4560
jinbum-kim wants to merge 2 commits intoray-project:masterfrom
jinbum-kim:chore/disable-fieldalignment-lint

Conversation

@jinbum-kim
Copy link

Why are these changes needed?

This PR is related to #4557.

This PR disables the govet fieldalignment analyzer in golangci-lint configuration to reduce lint noise and avoid forcing struct field reordering for readability reasons.

As a follow-up to disabling it, the golangci-lint pre-commit hook updated a couple of files by removing now-unnecessary //nolint:govet annotations.

Related issue number

closes #4557

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
Signed-off-by: jinbum9958 <jinbum9958@gmail.com>
// +kubebuilder:resource:categories=all
// +kubebuilder:storageversion
//
//nolint:govet // RayCronJob is the Schema for the raycronjobs API
Copy link
Member

Choose a reason for hiding this comment

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

Keep the original comment // RayCronJob is the Schema for the raycronjobs API

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

//nolint:govet // RayCronJobSpec defines the desired state of RayCronJob
Copy link
Member

Choose a reason for hiding this comment

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

Keep original comment // RayCronJobSpec defines the desired state of RayCronJob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider disabling field alignment lint check

2 participants