-
Notifications
You must be signed in to change notification settings - Fork 171
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
Non-zero exit code breaks CI compatibility #572
Comments
I will check this as soon as i can |
FWIW I overhauled the exit codes on solhint-community with: solhint-community/solhint-community#134 -- to exit early and with a different code if there's a misconfiguration |
cool! |
Hello @dbale-altoros Do you plan to implement this in solhint or should we move to solhint-community ? |
Hey @MaxenceAdnot I will implement this fix as well We will mantain this original solhint because it is an important part of protofire products |
@MaxenceAdnot |
Will merge this |
New version |
Thanks a lot @dbale-altoros |
@madlabman Thanks a lot for the feedback !! Really appreciate |
@madlabman made a new package on npm |
LGTM, thank you @dbale-altoros ! |
Since the version 4.5.0 there's a zero exit code (see #554) even with reported errors. It makes it hard to use within actions in CI. My personal opinion is to have the similar behaviour other linters preserve - return 1 in case of errors.
I assume the implemented change was an attempt to fix kinda niche issue (even it has fixed my workflow as well), and it was done in bad manner, I believe. My suggestion is to use command line flags to achieve the desired behaviour, such as --exit-code (to return non-zero exit code back) or, which is even better, to re-introduce the non-zero exit code and use a flag to change the behaviour on demand.
The text was updated successfully, but these errors were encountered: