forked from espressif/esp-idf
Merge branch 'docs/add-vale-config' into 'master'
docs: add vale config See merge request espressif/esp-idf!26227
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -106,3 +106,6 @@ size_info.txt
|
|||||||
|
|
||||||
# clang config (for LSP)
|
# clang config (for LSP)
|
||||||
.clangd
|
.clangd
|
||||||
|
|
||||||
|
# Vale
|
||||||
|
.vale/styles/*
|
||||||
|
@@ -55,6 +55,7 @@
|
|||||||
/.gitlab/dangerjs/ @esp-idf-codeowners/ci @esp-idf-codeowners/tools
|
/.gitlab/dangerjs/ @esp-idf-codeowners/ci @esp-idf-codeowners/tools
|
||||||
/.pre-commit-config.yaml @esp-idf-codeowners/ci
|
/.pre-commit-config.yaml @esp-idf-codeowners/ci
|
||||||
/.readthedocs.yml @esp-idf-codeowners/docs
|
/.readthedocs.yml @esp-idf-codeowners/docs
|
||||||
|
/.vale.ini @esp-idf-codeowners/docs
|
||||||
/CMakeLists.txt @esp-idf-codeowners/build-config
|
/CMakeLists.txt @esp-idf-codeowners/build-config
|
||||||
/COMPATIBILITY*.md @esp-idf-codeowners/peripherals
|
/COMPATIBILITY*.md @esp-idf-codeowners/peripherals
|
||||||
/CONTRIBUTING.md @esp-idf-codeowners/docs
|
/CONTRIBUTING.md @esp-idf-codeowners/docs
|
||||||
|
119
.vale.ini
Normal file
119
.vale.ini
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
###################
|
||||||
|
### Vale Config ###
|
||||||
|
###################
|
||||||
|
|
||||||
|
# This is a Vale linter configuration file.
|
||||||
|
# - Repo: esp-idf
|
||||||
|
# - Based on Default config: v0-1-1
|
||||||
|
# It lists all necessary parameters to configure Vale for your project.
|
||||||
|
# For official documentation on all config settings, see
|
||||||
|
# https://vale.sh/docs/topics/config
|
||||||
|
|
||||||
|
|
||||||
|
##############
|
||||||
|
### Global ###
|
||||||
|
##############
|
||||||
|
|
||||||
|
# This section lists core settings applying to Vale itself.
|
||||||
|
|
||||||
|
|
||||||
|
# Specify path to external resources (e.g., styles and vocab files).
|
||||||
|
# The path value may be absolute or relative to this configuration file.
|
||||||
|
StylesPath = .vale/styles
|
||||||
|
|
||||||
|
|
||||||
|
# Specify the minimum alert severity that Vale will report.
|
||||||
|
MinAlertLevel = suggestion # "suggestion", "warning", or "error"
|
||||||
|
|
||||||
|
|
||||||
|
# Specify vocabulary for special treatment.
|
||||||
|
# Create a folder in <StylesPath>/Vocab/<name>/and add its name here
|
||||||
|
# The folder should contain two files:
|
||||||
|
# - accept.txt -- lists words with accepted case-sensitive spelling
|
||||||
|
# - reject.txt -- lists words whose occurrences throw an error
|
||||||
|
# Vocab = Espressif
|
||||||
|
|
||||||
|
|
||||||
|
# Specify the packages to import into your project.
|
||||||
|
# A package is a zip file containing a number of rules (style) written in YAML.
|
||||||
|
# For a list of official packages, see Package Hub at https://vale.sh/hub/
|
||||||
|
# For official documentation on packages, see
|
||||||
|
# https://vale.sh/docs/topics/packages/
|
||||||
|
# Before linting, navigate to your project and run `vale sync` to download
|
||||||
|
# the official packages specified below.
|
||||||
|
# Packages = Package1, Package2, \
|
||||||
|
# https://example.com/path/to/package/Package.zip
|
||||||
|
Packages = Google, Microsoft, RedHat, \
|
||||||
|
https://dl.espressif.com/dl/esp-vale-config/Espressif-latest.zip
|
||||||
|
|
||||||
|
|
||||||
|
###############
|
||||||
|
### Formats ###
|
||||||
|
###############
|
||||||
|
|
||||||
|
# This section enables association of "unknown" formats with the ones
|
||||||
|
# supported by Vale. For official documentation on supported formats, see
|
||||||
|
# https://vale.sh/docs/topics/scoping/
|
||||||
|
[formats]
|
||||||
|
|
||||||
|
# For example, treat MDX files as Markdown files.
|
||||||
|
# mdx = md
|
||||||
|
|
||||||
|
|
||||||
|
################################
|
||||||
|
### Format-specific settings ###
|
||||||
|
################################
|
||||||
|
|
||||||
|
# This section lists the settings that apply to specific file formats
|
||||||
|
# based on their glob pattern.
|
||||||
|
# Settings provided under a more specific glob pattern,
|
||||||
|
# such as [*.{md,txt}] will override those in [*].
|
||||||
|
[*.{md,rst}]
|
||||||
|
|
||||||
|
|
||||||
|
# Enable styles to activate all rules included in them.
|
||||||
|
# BasedOnStyles = Style1, Style2
|
||||||
|
BasedOnStyles = Vale, Espressif-latest
|
||||||
|
|
||||||
|
|
||||||
|
### Deactivate individual rules ###
|
||||||
|
### in enabled styles.
|
||||||
|
# Style1.Rule1 = NO
|
||||||
|
Vale.Repetition = NO
|
||||||
|
Vale.Spelling = NO
|
||||||
|
Espressif-latest.Admonitions = NO
|
||||||
|
Espressif-latest.Contractions = NO
|
||||||
|
Espressif-latest.Monospace = NO
|
||||||
|
Espressif-latest.PascalCamelCase = NO
|
||||||
|
|
||||||
|
|
||||||
|
### Change default severity level ###
|
||||||
|
### of an activated rule.
|
||||||
|
# Choose between "suggestion", "warning", or "error".
|
||||||
|
# Style1.Rule2 = error
|
||||||
|
|
||||||
|
|
||||||
|
### Activate individual rules ###
|
||||||
|
### in non-enabled styles stored in <StylesPath>.
|
||||||
|
# Style1.Rule = YES
|
||||||
|
Google.Gender = YES
|
||||||
|
Google.GenderBias = YES
|
||||||
|
Google.Slang = YES
|
||||||
|
Google.Spacing = YES
|
||||||
|
Microsoft.DateNumbers = YES
|
||||||
|
Microsoft.Ellipses = YES
|
||||||
|
Microsoft.FirstPerson = YES
|
||||||
|
Microsoft.Hyphens = YES
|
||||||
|
Microsoft.Ordinal = YES
|
||||||
|
Microsoft.OxfordComma = YES
|
||||||
|
Microsoft.Percentages = YES
|
||||||
|
Microsoft.RangeTime = YES
|
||||||
|
Microsoft.Semicolon = YES
|
||||||
|
Microsoft.SentenceLength = YES
|
||||||
|
Microsoft.Suspended = YES
|
||||||
|
Microsoft.Units = YES
|
||||||
|
Microsoft.URLFormat = YES
|
||||||
|
Microsoft.We = YES
|
||||||
|
Microsoft.Wordiness = YES
|
||||||
|
RedHat.Contractions = YES
|
||||||
|
RedHat.RepeatedWords = YES
|
Reference in New Issue
Block a user