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

introducing linter for new code changes only #136

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

yashs360
Copy link
Contributor

Adding linter check for Pull requests to save some trivial review time.
Atm limited to new changes only, but can be extended to all code in future as we cleanup old lint errors.

@yashs360
Copy link
Contributor Author

All checks pass in the current PR due to no new code change.

here is the verification of lint error detection for a bad change -

Screenshot 2024-07-11 at 9 45 22 PM Screenshot 2024-07-11 at 9 45 45 PM

@yashs360
Copy link
Contributor Author

Please review @arpitbbhayani @JyotinderSingh

uses: golangci/golangci-lint-action@v6
with:
version: v1.59
only-new-issues: true
Copy link
Contributor Author

@yashs360 yashs360 Jul 11, 2024

Choose a reason for hiding this comment

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

This tiny flag restricts us to new code changes only.
Separate PR will be submitted for simplicity, to bulk fix all existing errors.

@@ -1,4 +1,4 @@
name: Go
name: build-and-test
Copy link
Contributor Author

@yashs360 yashs360 Jul 11, 2024

Choose a reason for hiding this comment

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

Renaming this to something more descriptive.

arpitbbhayani added a commit that referenced this pull request Jul 12, 2024
Clean sweep to fix all existing lint errors. For best experience please merge this after linter PR (#136) is merged.
@arpitbbhayani arpitbbhayani merged commit ea124e5 into DiceDB:master Jul 12, 2024
2 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