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

Ensure non zero exit code when no files are linted #3302

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Apr 18, 2023

This change will make the linter return a special exit code when no files are analyzed. This should prevent accidents related to misconfiguration via config file excludes or wrong arguments being passed to it. The returned exit code is unique and returned only for this special case.

Related: #3284

@ssbarnea ssbarnea requested a review from a team as a code owner April 18, 2023 10:08
@ssbarnea ssbarnea added the bug label Apr 18, 2023
This change will make the linter return a special exit code when
no files are analyzed. This should prevent accidents related to
misconfiguration via config file excludes or wrong arguments being
passed to it. The returned exit code is unique and returned only
for this special case.

Related: #3284
@ssbarnea ssbarnea enabled auto-merge (squash) April 18, 2023 12:42
@ssbarnea ssbarnea merged commit 80e2be3 into main Apr 18, 2023
@ssbarnea ssbarnea deleted the fix/profile-experimental branch April 18, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants