Skip to content

Commit

Permalink
fix redhat-documentation#114 - no error for "terminal"
Browse files Browse the repository at this point in the history
  • Loading branch information
themr0c committed Jan 19, 2022
1 parent 58d212d commit 8bfef37
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .vale/fixtures/RedHat/shell-prompt/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
StylesPath = ../../../styles

MinAlertLevel = suggestion

[*.adoc]
RedHat.shell-prompt = YES
2 changes: 2 additions & 0 deletions .vale/fixtures/RedHat/shell-prompt/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
invalid content: command prompt
invalid content: shell
2 changes: 2 additions & 0 deletions .vale/fixtures/RedHat/shell-prompt/testvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
valid content: shell prompt
valid content: terminal
10 changes: 10 additions & 0 deletions .vale/styles/RedHat/SSL-TLS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: substitution
message: "Use '%s' rather than '%s'."
link: https://redhat-documentation.github.io/supplementary-style-guide/#ssl-tls
ignorecase: true
level: error
action:
name: replace
source: Red Hat
swap:
"SSL(?!/TLS)": "SSL/TLS"
6 changes: 5 additions & 1 deletion .vale/styles/RedHat/shell-prompt.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
extends: substitution
message: "Use '%s' rather than '%s'."
# The "shell prompt" is the character at the beginning of the command line, for example "$" or "#". It indicates that the shell is ready to accept commands. Do not use "command prompt," "terminal," or "shell."
# "Terminal emulation" refers to making a computer respond like a particular type of terminal. Terminal emulation programs allow you to access a mainframe computer or bulletin board service with a personal computer.

link: https://redhat-documentation.github.io/supplementary-style-guide/#shell-prompt
ignorecase: true
level: error
action:
name: replace
source: Red Hat
swap:
command prompt|terminal: shell prompt
command prompt: shell prompt
"shell(?! prompt)": shell prompt

0 comments on commit 8bfef37

Please sign in to comment.