Files
archie/.vale/styles/Archie/Wordiness.yml
T

45 lines
1.2 KiB
YAML

# Prefer concise wording over wordy phrases.
extends: substitution
message: "Use '%s' instead of '%s'."
level: warning
ignorecase: true
action:
name: replace
swap:
a large number of: many
a majority of: most
a sufficient number of: enough
as a means of: to
at this point in time: now
due to the fact that: because
for the purpose of: to
has the capability to: can
in close proximity to: near
in excess of: more than
in spite of the fact that: although
in the event that: if
in the near future: soon
make use of: use
on a daily basis: daily
on a monthly basis: monthly
on a weekly basis: weekly
prior to: before
subsequent to: after
take advantage of: use
until such time as: until
whether or not: whether
with regard to: about
with respect to: about
tests:
- name: flags wordy phrases
input: |
Check the signature prior to parsing due to the fact that payloads are untrusted.
want: |
1:21:Archie.Wordiness:Use 'before' instead of 'prior to'.
1:38:Archie.Wordiness:Use 'because' instead of 'due to the fact that'.
- name: accepts concise wording
input: |
Check the signature before parsing because payloads are untrusted.
want: ""