Skip to content

Commit

Permalink
Merge pull request #14 from Consensys/update-vale
Browse files Browse the repository at this point in the history
Updates for vale
  • Loading branch information
m4sterbunny authored Sep 11, 2024
2 parents a238eac + ab8b73c commit 14cfc49
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
27 changes: 17 additions & 10 deletions spelling/.vale.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Vale configuration

# Styles directory
# See vale_styles/README.md file for details and licencing information

# Styles directory for all packages and config (vocab) files

StylesPath = ./styles

Packages = proselint, Microsoft, write-good

# Packages to sync with. Remember never adapt these packages, all changes will be lost on update

Packages = Microsoft, proselint, write-good

Vocab = Consensys-common

# The minimum alert level to display (suggestion, warning, or error).
# CI builds will only fail on error-level alerts.
MinAlertLevel = warning
MinAlertLevel = suggestion

[formats]
mdx = md
Expand All @@ -28,21 +32,24 @@ TokenIgnores = ({![^!}]+!}),\
(:[a-z\-]+:)

# List of styles to load
BasedOnStyles = Vale, proselint, write-good, Microsoft, Consensys

# Style.Rule = {YES, NO} to enable or disable a specific rule
Microsoft.Contractions = warning
[*.md]
BasedOnStyles = Vale, Microsoft, Consensys, proselint, write-good

# Allows Consensys Headings to take precedence
Microsoft.Headings = No

Microsoft.GeneralURL = NO
# Allows Microsoft passive to take precedence
write-good.Passive = No

Microsoft.Contractions = warning

# Microsoft.Acronyms is replaced by Consensys list
Microsoft.Acronyms = NO

# Microsoft.Avoid is not relevant
Microsoft.Avoid = NO

Microsoft.Headings = YES

write-good.Weasel = NO

proselint.Hyperbole = warning
4 changes: 3 additions & 1 deletion spelling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ Vale too.

### General
2. Will links be false positives, e.g. Can linting for " CLI" work to avoid false positives for links?
3. Can we use reject [here to prevent links being put in this format, is it covered another way?
3. Can we use reject [here to prevent links being put in this format, is it covered another way?


2 changes: 1 addition & 1 deletion spelling/styles/Consensys/Headings.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: capitalization
message: "'%s' should use sentence-style capitalization."
link: 'https://docs.microsoft.com/en-us/style-guide/capitalization'
level: suggestion
level: warning
scope: heading
match: $sentence
indicators:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Lib[sS]odium
log[bB]ack|logBack
log[sS]tash
merkle
[mM]etamask|[mM]eta[ -][mM]ask
# [mM]etamask|[mM]eta[ -][mM]ask
orion
[pP]egaSys
p[ -][cC]hain
Expand Down

0 comments on commit 14cfc49

Please sign in to comment.