Skip to content

Adding Repetition test to error levels #1624

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ The following tests are at a `error` level and will prevent merging:
- [NonStandardQuotes](https://github.com/fluent/fluent-bit-docs/blob/master/vale-styles/FluentBit/NonStandardQuotes.yml):
[Use standard quotes](https://developers.google.com/style/quotation-marks#straight-and-curly-quotation-marks).
By default, Google Docs and Microsoft Word turn standard straight quotes into "smart"
curly quotes. If you copy-paste from one of these tools, you must correct the quotes
back to straight quotes. You can also turn off smart quotes
in [Google Docs](https://support.google.com/docs/thread/217182974/can-i-turn-smart-quotes-off-in-a-google-doc?hl=en)
curly quotes. If you copy-paste from one of these tools, you must correct the quotes
back to straight quotes. You can also turn off smart quotes
in [Google Docs](https://support.google.com/docs/thread/217182974/can-i-turn-smart-quotes-off-in-a-google-doc?hl=en)
or [Microsoft Word](https://support.microsoft.com/en-us/office/smart-quotes-in-word-and-powerpoint-702fc92e-b723-4e3d-b2cc-71dedaf2f343)
to prevent this problem.
- [Repetition](https://github.com/errata-ai/vale/blob/v3/testdata/styles/Markup/Repetition.yml):
Checks for the same word used twice in succession.
2 changes: 1 addition & 1 deletion vale-styles/FluentBit/Repetition.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
extends: repetition
message: '"%s" is repeated.'
level: suggestion
level: error
alpha: true
tokens:
- '[^\s]+'