From 9b1031a7f79c165c2f398b13f3b83a62e2ff9d9b Mon Sep 17 00:00:00 2001 From: Matthew Setter Date: Mon, 19 Feb 2024 15:32:16 +1000 Subject: [PATCH] Add Vale.sh Vale (https://vale.sh/) is an open source documentation prose linter and validator that seems to be one of the best and most used tools for checking documentation. This change adds the core configuration, along with a custom library for the Slim project. --- .vale.ini | 20 +++++ styles/config/vocabularies/SlimPHP/accept.txt | 73 +++++++++++++++++++ styles/config/vocabularies/SlimPHP/reject.txt | 0 3 files changed, 93 insertions(+) create mode 100644 .vale.ini create mode 100644 styles/config/vocabularies/SlimPHP/accept.txt create mode 100644 styles/config/vocabularies/SlimPHP/reject.txt diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 00000000..f5a215df --- /dev/null +++ b/.vale.ini @@ -0,0 +1,20 @@ +StylesPath = styles + +MinAlertLevel = error + +Packages = RedHat, proselint, write-good + +Vocab = SlimPHP + +SkippedScopes = figure + +[*] +BasedOnStyles = Vale, RedHat, proselint, write-good +write-good.So = NO +write-good.ThereIs = NO +RedHat.TermsErrors = NO +proselint.But = NO +proselint.Annotations = NO +proselint.Very = NO + +TokenIgnores = \[.*\] \ No newline at end of file diff --git a/styles/config/vocabularies/SlimPHP/accept.txt b/styles/config/vocabularies/SlimPHP/accept.txt new file mode 100644 index 00000000..819ed68e --- /dev/null +++ b/styles/config/vocabularies/SlimPHP/accept.txt @@ -0,0 +1,73 @@ +(?i)Nginx +(?i)Slim +(?i)URI +[Cc]harset +[Cc]ookies +[Pp]re +[Rr]eferer +[Rr]eparsed +[Rr]eparsing +API +Algolia +Autoloaders +Caddy +Crypto +DeployBot +Diactoros +ETag +FileZilla +Laminas +Lighttpd +Lockhart +Manricks +Monolog +Nyholm +PHPDoc +PHPFog +PHPStorm +Packagist +Phing +Stylebook +Symfony +Throwable +URL +Zend +[Cc]onfig +[Ii]nvokable +[Ii]nvoke +[Mm]iddleware +[Ww]eb server +autoload +autoloader +basename +boolean +callables +chainable +fastcgi +fastcgi_params +getters +git +invoke +iterable +jQuery +mcrypt +microframework +mod_php +mod_rewrite +namespace +prepended +reimplementing +renderers +repo +repurpose +setters +ships with +src +superglobal +try_files +tuupola +vendored +vhost +webbishy +webroot +www \ No newline at end of file diff --git a/styles/config/vocabularies/SlimPHP/reject.txt b/styles/config/vocabularies/SlimPHP/reject.txt new file mode 100644 index 00000000..e69de29b