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

Rework golangci lint #195

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Rework golangci lint #195

merged 3 commits into from
Jan 15, 2025

Conversation

obnoxxx
Copy link
Collaborator

@obnoxxx obnoxxx commented Jan 14, 2025

Describe what this PR does

This PR reworks the golangci-lint make targets a bit to make them more consistent and systematic.
While at it, it makes sure the same version of golangci-lint is used locally and in the CI.

Finally, the lint CI workflow is changed to use the golangci-lint make target instead of the corresponding github action.

Is there anything that requires special attention

Is the change backward compatible?

yes.

Are there concerns around backward compatibility?

no.

Future concerns

none
Checklist:

  • Commit Message Formatting: Commit titles and messages follow
    guidelines in the developer
    guide
    .
  • Reviewed the developer guide on Submitting a Pull
    Request
  • Pending release
    notes

    updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

@obnoxxx
Copy link
Collaborator Author

obnoxxx commented Jan 14, 2025

@Madhu-1, PTAL.

@obnoxxx obnoxxx force-pushed the rework-golangci-lint branch from c183698 to 3eeb4cc Compare January 14, 2025 12:30
@obnoxxx obnoxxx requested a review from Madhu-1 January 14, 2025 12:33
@obnoxxx obnoxxx mentioned this pull request Jan 14, 2025
6 tasks
@obnoxxx obnoxxx force-pushed the rework-golangci-lint branch from 3eeb4cc to b682f5b Compare January 14, 2025 12:45
Copy link
Collaborator

@Madhu-1 Madhu-1 left a comment

Choose a reason for hiding this comment

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

small nits, LGTM

Makefile Outdated Show resolved Hide resolved
This makes the golangci-lint related targets a bit more systematic and
consistent.

Signed-off-by: Michael Adam <[email protected]>
 this  makes sure thwe same version is used locally and in the CI.

Signed-off-by: Michael Adam <[email protected]>
@obnoxxx obnoxxx force-pushed the rework-golangci-lint branch from ecaf7fa to 1f9a737 Compare January 14, 2025 14:40
@obnoxxx obnoxxx requested a review from Madhu-1 January 14, 2025 14:40
@obnoxxx obnoxxx force-pushed the rework-golangci-lint branch from 1f9a737 to cf9a9f5 Compare January 14, 2025 15:24
@Madhu-1 Madhu-1 merged commit d9caee9 into ceph:main Jan 15, 2025
13 checks passed
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.

2 participants