Use linter exit code to determine check result
See original GitHub issueI tried out the rubocop linter in my project and I noticed that when I have warnings:

I still get a green check:

That’s not the way that the typical rubocop setup works, usually those errors would return a non-zero exit code and fail the build. I wouldn’t even know I needed to look for errors unless I click into the Detail screen.
I noticed that here you’re only considering errors in the Check status:
https://github.com/samuelmeuli/lint-action/blob/a838ab16415bb1752bb9d77b4ce13fa80bfcaef6/src/github.js#L75
Would you consider failing on warnings as well? Or make that configurable?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
lint Source Code Checker - Oracle Help Center
This chapter explans how you can use the lint program to check your C code for errors that may cause a compilation failure...
Read more >Successful exit code (0) when typecheck error #529 - GitHub
AIf I use v1.16.0 golangci-lint run fails with the compilation errors, but v1.17.X finishes successfully. This is an issue for me when using...
Read more >Linters | golangci-lint
Name Description Presets Since
asasalint ⚙️ check for pass any as any in variadic func(...any) bugs 1.47.0
bidichk ⚙️ Checks for dangerous unicode character sequences...
Read more >How to get non-zero exit status with lintr::lint() in order to fail a ...
The lintr::lint() function returns results in a list with class "lints" . You have issues if its length is greater than zero, so...
Read more >Improve your code with lint checks - Android Developers
In the lint Inspection Results window after you click Analyze > Inspect Code. See Manually run inspections. Configure the lint file. You can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you for the quick fix! I tried it with
rubocopin my project and it’s working great.I like this approach. Seems like it would be consistent with the way CI typically works.