Skip to content

Commit

Permalink
Vale POS rule For noun + using
Browse files Browse the repository at this point in the history
  • Loading branch information
aireilly committed Jun 7, 2024
1 parent c5e7d57 commit eeb8d25
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vale/fixtures/RedHat/Using/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Vale configuration file to test the `Using` rule
StylesPath = ../../../styles
MinAlertLevel = suggestion
[*.adoc]
RedHat.Using = YES
1 change: 1 addition & 0 deletions .vale/fixtures/RedHat/Using/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
We improved the system using new algorithms.
1 change: 1 addition & 0 deletions .vale/fixtures/RedHat/Using/testvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If you are using the ElasticSearch log store do nothing.
8 changes: 8 additions & 0 deletions .vale/styles/RedHat/Using.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
extends: sequence
message: "Use 'by using' instead of 'using' when it follows a noun for clarity and grammatical correctness."
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/Using/
level: warning
tokens:
- tag: NN|NNP|NNPS|NNS
- pattern: using

0 comments on commit eeb8d25

Please sign in to comment.