-
Notifications
You must be signed in to change notification settings - Fork 169
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
fix: always let printed reports send to stdout #512
Conversation
10781ac
to
d14374f
Compare
@KalleChen we really appreciate getting involved |
@dbale-altoros Thanks for your reply! The problem is that we use null-ls to print the solhint on nvim. And this issue indicates that the reports output from solhint sometimes sent to And I found that this function will check if the reposts include function exitWithCode(reports) {
const errorsCount = reports.reduce((acc, i) => acc + i.errorCount, 0)
process.exit(errorsCount > 0 ? 1 : 0)
} I also found using process.exit(1) will let the output of console.log sent to And I think this should not happen, because there's actually no "error" happen in the linting process, just 'error flag' in report. Therefore, this PR is trying to remove the exitWithCode function. If there's something confusing or I have got something wrong, pls let me know. thanks again! btw, I will get some time to investigate why e2e test failed. |
I think I understand your point... let me see what we can do... Join our discord: |
@dbale-altoros I will be looking forward to seeing the new version of solhint. Thanks for your help and maintain this project. |
@KalleChen thanks to you for your contribution |
@dbale-altoros thanks! if there's anything I could help you could just let me know |
Why do we need this PR?
This PR is in order to fix this
Also, I have a previous PR for this, since this repo has not been maintained then.