-
Notifications
You must be signed in to change notification settings - Fork 142
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
[Docs] Fix warnings and suggestions from vale
#540
Conversation
vale
vale
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.
🧹 😍
Aha! That makes sense, thanks for working out what was happening and resolving those issues.
We could just make the Of course, by doing that, it then means that all reports have to be fixed even where they are valid cases (this may mean simply switching vale on and off with comments around the section in question). Having a way to see all suggestions clearly at all times, and then decide whether to act on them is the ideal. I'll discuss with @antonymilne in the next sprint as we have a ticket to look at this. For now though, you've cleared up what was there, and that's awesome. Thank you 🙏 |
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.
Nice modifications to make Vale happy, thank you! 🏆
Description
vale
that were not visible until an error was introduced@stichbury - returning to your comment on why certain things were not raised on Vale in the last PRs. I just quickly checked, and there are two relevant factors:
e.g.
was considered an error, bute.g
was not -> I've made it stricter in this PR nowvale
as a pre-commit hook will always return "passed" as long as there is no new error introduced (3 different levels: error, warning, suggestion).This means that over time,
vale
probably raised a couple of suggestions and warnings, but they were never shown to us unless we simultaneously introduced avale
error. To find all of the warnings/suggestions, I intentionally added an error (addinge.g. this
in any of the docs) and then ran the linter. Only then were all of the warnings/suggestions visible. I've fixed them all in this PR now, but it's essential to be aware of that limitation.@stichbury - I couldn't find a quick way of configuring that warnings/suggestions are also errors for us. Do you have an idea? Otherwise, it's good to be aware of the restriction above 🔝 It might be worth considering switching to github actions for vale. It seems like there is a configuration option fail_on_error that might does that, but one would have to test it out, because I am not sure if it behaves similarly to the pre-commit hook. So I'll leave that for someone to test out next sprint 👍
Screenshot
Notice
I acknowledge and agree that by checking this box and clicking "Submit Pull Request":