git: 55b69b99cf - main - vale: Fix for editor integration

Muhammad Moinur Rahman <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/doc/commit/?id=55b69b99cf164b58fd2abcff1d90e207df945b8d

commit 55b69b99cf164b58fd2abcff1d90e207df945b8d
Author:     Muhammad Moinur Rahman <[email protected]>
AuthorDate: 2022-11-12 22:18:51 +0000
Commit:     Muhammad Moinur Rahman <[email protected]>
CommitDate: 2022-11-12 22:21:37 +0000

    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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.