Skip to content

Code linting: don't fail when there are no linkable changes#97

Merged
joshpencheon merged 3 commits intomasterfrom
no-lintable-changes
Feb 18, 2021
Merged

Code linting: don't fail when there are no linkable changes#97
joshpencheon merged 3 commits intomasterfrom
no-lintable-changes

Conversation

@joshpencheon
Copy link
Contributor

A non-zero exit status means that downstream processes assume failure. In reality, we want to to fail only when there are lint issues.

This PR ensures that the exit status is zero unless linting issues are actually found. If a user has interactively run against a malformed range, they still receive a message to warn them that no changes were found to analyse.

A non-zero exit status means that downstream processes assume failure.
In reality, we want to to fail only when there are lint issues.

If a user has interactively run against a malformed range, they still
receive a message to warn them that no changes were found to analyse.
Copy link
Contributor

@ollietulloch ollietulloch left a comment

Choose a reason for hiding this comment

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

Thanks @joshpencheon - looks good.

@joshpencheon joshpencheon merged commit 0c1489e into master Feb 18, 2021
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