Skip to content

Commit

Permalink
Add ObviousTerms rule
Browse files Browse the repository at this point in the history
  • Loading branch information
apinnick committed Oct 7, 2024
1 parent 800a614 commit 66b5987
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vale/fixtures/RedHat/ObviousTerms/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Vale configuration file to test the `ObviousTerms` rule
StylesPath = ../../../styles
MinAlertLevel = suggestion
[*.adoc]
RedHat.ObviousTerms = YES
2 changes: 2 additions & 0 deletions .vale/fixtures/RedHat/ObviousTerms/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Enter your user name in the Username field.
Enter your description in the Description field.
Empty file.
16 changes: 16 additions & 0 deletions .vale/styles/RedHat/ObviousTerms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
extends: existence
level: suggestion
# link:
message: "Consider not documenting %s because it is self-explanatory."
scope: sentence
# source:
action:
name: remove
tokens:
- 'User field'
- 'Username field'
- 'Password field'
- 'Mail field'
- 'Description field'
- 'Name field'

0 comments on commit 66b5987

Please sign in to comment.