-
Notifications
You must be signed in to change notification settings - Fork 33
fix: add Vale linting [DM-4] #442
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
base: main
Are you sure you want to change the base?
Conversation
mikemimik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 The output of the vale action is a little different than I expected. I thought that it would be similar to the terminal output you showed me @darrickyong when implementing this. My expectation was that the action would fail, not pass, and I'm curious why that is.
| - uses: errata-ai/vale-action@v2.1.1 | ||
| with: | ||
| vale_flags: "--glob=!{main/docs/fr-ca/*,main/docs/ja-jp/*}" | ||
| fail_on_error: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the action is still passing (return code 0) even with this flag turned on. If you look at the execution logs there's these two lines by the end:
reviewdog: Reporting results for "vale"
reviewdog: No results found for "vale". 119 results found outside diff.
This is a bit suspicious. It could be that somehow the results are being filteres out of reviewdog's output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, going through more docs this morning and it appears that results by default are filtered in reviewdog by the PR's diff (i.e. added/modified files). I've now updated the filter to be filter_mode: nofilter and it looks like we are failing the action now with reviewdog outputting all the expected errors.
By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
This PR adds
valeas a Github Action and initialvaleconfig.References
Testing
Checklist