Skip to content

Commit

Permalink
Add ObviousTerms rule
Browse files Browse the repository at this point in the history
  • Loading branch information
apinnick committed Sep 30, 2024
1 parent 800a614 commit 79e6bed
Show file tree
Hide file tree
Showing 4 changed files with 25 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
3 changes: 3 additions & 0 deletions .vale/fixtures/RedHat/ObviousTerms/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//vale-fixture
. Enter your user name in the *Username* field.
. Enter your description in the *Description* field.
1 change: 1 addition & 0 deletions .vale/fixtures/RedHat/ObviousTerms/testvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

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 whether you need to document a self-explanatory term or field."
scope: list
# source:
action:
name: remove
tokens:
- User
- Username
- Password
- Mail
- Description
- Name

0 comments on commit 79e6bed

Please sign in to comment.