Skip to content

Google.Header throwing false positives #31

@andrewvaughan

Description

@andrewvaughan

I'm trying to figure out why this keeps happening on seemingly-random headings:

For example, this snippet from my CONTRIBUTING.md:

For more information, please refer to the project's [Security Policy][security].

### Submit an idea

This community values ideas of any form - even better if you can help make it a reality. If you can't add a feature on
your own, suggestions are still encouraged and welcomed. Prior to submitting an idea or feature request, please search
through the project's [open feature requests][issues-features]. If you find a similar feature request, please add a
comment there, instead of opening a new Issue.

This keeps throwing:

 .github/CONTRIBUTING.md
 168:5    warning     'Submit an idea' should use     Google.Headings
                      sentence-style capitalization.

I have a custom Vocab I thought was causing an issue, but removing it did nothing. I also have this token configuration so Vale doesn't barf on me for using all lower-case with a custom Vocab in my Markdown link references:

##
# Markdown-specific rules
#
[*.md]

##
# Ignore link references
#
TokenIgnores = (\[`A-Za-z0-9-_]+\])

But removing that does nothing. I can't figure out why I keep getting this linting error when the Heading is in a sentence structure.

I have completely removed and synced my Google styles several times - no joy.

Here is my full config:

##
# Vale prose linter
#
# Vale is a command-line and open source linting tool that allows developers to define and apply custom rules for
# documentation/editorial style guides. Incorporating Vale in documentation helps to detect errors and provides error-
# fixing suggestions.
#
# MegaLinter manages all execution of this linter.
#
# @link https://vale.sh/
# @link https://megalinter.io/beta/descriptors/spell_vale/
# @link https://vale.sh/docs/topics/config/
# @link https://vale.sh/explorer/
#

##
# The linter configuration root is the base for Vale styles
#
StylesPath = .config/linters/vale/styles

##
# Hardened consistency requires the most verbose option
#
# The default level is `warning` for projects that don't need stringent prose requirements
#
MinAlertLevel = suggestion

##
# By default, projects use the Google Developer Documentation Style Guide
#
# @link https://developers.google.com/style/
#
Packages = Google

##
# Two vocab sets exist for ops and the project
#
# This isn't used for spellcheck, as CSpell manages that. Instead, informs Vale what words to treat as proper nouns and
# capitalization standards.
#
# @link https://vale.sh/docs/topics/vocab/
#
Vocab = Ops, Project


##
# Global rules
#
[*]

##
# The Google style-guide is the default for these projects
#
BasedOnStyles = Vale, Google

##
# The project disables spelling as the project uses CSpell for spellcheck
#
Vale.Spelling = NO

##
# Users of these projects understand common acronyms
#
Google.Acronyms = NO


##
# Markdown-specific rules
#
[*.md]

##
# Ignore link references
#
TokenIgnores = (\]\[.*\])


##
# File extension associations
#
# @link https://vale.sh/docs/topics/config/#format-associations
#
[formats]

#
# SCSS is more commonly used in projects than pure SASS
#
scss = sass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions