From 55b69b99cf164b58fd2abcff1d90e207df945b8d Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 12 Nov 2022 16:18:51 -0600 Subject: [PATCH] vale: Fix for editor integration Previous commit of .vale.ini was not helpful for editor integration as vim creates a file outside the git repository(specially /tmp) where vale styles were not applicable. This commit changes the applicable file patterns to match editor integration. Approved by: bcr Differential Revision: https://reviews.freebsd.org/D37362 --- .vale.ini | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/.vale.ini b/.vale.ini index 2566579071..1fa29fe208 100644 --- a/.vale.ini +++ b/.vale.ini @@ -10,6 +10,9 @@ attribute-missing = drop [*.adoc] BasedOnStyles = FreeBSD + +[website/content/{bn-bd,da,de,el,es,fr,hu,id,it,ja,ko,mn,nl,pl,pt-br,ru,tr,zh-cn,zh-tw}/**/*.adoc] +BasedOnStyles = FreeBSD FreeBSD.BrandTerms = NO FreeBSD.ConsciousLanguage = NO FreeBSD.Contractions = NO @@ -21,28 +24,15 @@ FreeBSD.Spacing = NO FreeBSD.Spelling = NO FreeBSD.Weasel = NO -[website/content/en/**/*.adoc] +[documentation/content/{bn-bd,da,de,el,es,fr,hu,id,it,ja,ko,mn,nl,pl,pt-br,ru,tr,zh-cn,zh-tw}/**/*.adoc] BasedOnStyles = FreeBSD -FreeBSD.BrandTerms = YES -FreeBSD.ConsciousLanguage = YES -FreeBSD.Contractions = YES -FreeBSD.EOLSpacing = YES -FreeBSD.Hang = YES -FreeBSD.Hyphens = YES -FreeBSD.Repitition = YES -FreeBSD.Spacing = YES -FreeBSD.Spelling = YES -FreeBSD.Weasel = NO - -[documentation/content/en/**/*.adoc] -BasedOnStyles = FreeBSD -FreeBSD.BrandTerms = YES -FreeBSD.ConsciousLanguage = YES -FreeBSD.Contractions = YES -FreeBSD.EOLSpacing = YES -FreeBSD.Hang = YES -FreeBSD.Hyphens = YES -FreeBSD.Repitition = YES -FreeBSD.Spacing = YES -FreeBSD.Spelling = YES +FreeBSD.BrandTerms = NO +FreeBSD.ConsciousLanguage = NO +FreeBSD.Contractions = NO +FreeBSD.EOLSpacing = NO +FreeBSD.Hang = NO +FreeBSD.Hyphens = NO +FreeBSD.Repitition = NO +FreeBSD.Spacing = NO +FreeBSD.Spelling = NO FreeBSD.Weasel = NO