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

Update linter command to support diff linting #3474

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

berndverst
Copy link
Member

Description

Now instead of make lint which will complain about historical lint errors, you can also run:

get fetch upstream # update your upstream references
LINT_BASE=upstream/main make lint

This will only lint the commits you added since the commit pointed to by LINT_BASE. Under the hood this uses git rev-parse so you can use friendly names like tags, branch names or simply commit IDs.

@berndverst berndverst requested review from a team as code owners July 2, 2024 18:43
@ItalyPaleAle ItalyPaleAle merged commit 82a7073 into dapr:main Jul 2, 2024
87 of 89 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