diff --git a/.vale.ini b/.vale.ini --- a/.vale.ini +++ b/.vale.ini @@ -19,6 +19,7 @@ FreeBSD.EOLSpacing = NO FreeBSD.Hang = NO FreeBSD.Hyphens = NO +FreeBSD.SuperfluousOptArgInLinks = NO FreeBSD.Repitition = NO FreeBSD.Spacing = NO FreeBSD.Spelling = NO @@ -32,6 +33,7 @@ FreeBSD.EOLSpacing = NO FreeBSD.Hang = NO FreeBSD.Hyphens = NO +FreeBSD.SuperfluousOptArgInLinks = NO FreeBSD.Repitition = NO FreeBSD.Spacing = NO FreeBSD.Spelling = NO diff --git a/.vale/styles/FreeBSD/SuperfluousOptArgInLinks.yml b/.vale/styles/FreeBSD/SuperfluousOptArgInLinks.yml new file mode 100644 --- /dev/null +++ b/.vale/styles/FreeBSD/SuperfluousOptArgInLinks.yml @@ -0,0 +1,7 @@ +extends: existence +message: "Displayed text coincides with URL, leave the brackets empty: %s" +ignorecase: true +level: suggestion +scope: raw +raw: + - 'link:([^ ]*)\/?\[\1\/?\]'