mirror of
https://github.com/dunyakirkali/letterpress.git
synced 2026-02-07 07:33:00 +00:00
Enable vale for prose linting (#3)
* Enable vale in CI * Add vale config * Tweak vale * Update config * Update .gitignore * Switch back * Rename CI * Add badges * Tidy up CI * Change image * Configure vale * Delint * Update README
This commit is contained in:
16
.github/styles/RedHat/RepeatedWords.yml
vendored
Normal file
16
.github/styles/RedHat/RepeatedWords.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
extends: repetition
|
||||
message: "'%s' is repeated."
|
||||
level: warning
|
||||
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/repeatedwords/
|
||||
ignorecase: false
|
||||
alpha: true
|
||||
action:
|
||||
name: edit
|
||||
params:
|
||||
- regex
|
||||
- '(\w+)(\s\w+)' # pattern
|
||||
- "$1" # replace
|
||||
tokens:
|
||||
- '[^\s\.]+'
|
||||
- '[^\s]+'
|
||||
Reference in New Issue
Block a user