Skip to content

docs: strict tier with markdownlint-cli2, Dx vale style, typos tier #14660

Open

Description

@TrapsterDK

Where

  • quality/curated_defaults.bzl:137-148, docs/cli/commands/quality.md:149-167: markdown lint is lychee, markdown_check, typos. No markdownlint.
  • quality/tiers/vale/strict.ini:1-6: Vale + write-good only. Vale is in no default lint list (quality.md:351).
  • No typos tier or _typos.toml (quality.md:331).
  • asciidoc/rules/defs.bzl:7-17, rst/rules/defs.bzl:6-14: no linter beyond vale, lychee, typos.
  • quality/tools.bzl: vale, lychee, typos have no severity().

Fix

Guard rules (do first):

  • Dx vale style, existence rules at error: TODO, FIXME, TBD, XXX, lorem ipsum, your-.*-here, <placeholder>, "as an AI", and filler: "it is worth noting", "delve", "in order to", "seamless", "robust", "leverage", "comprehensive", "game-changer".
  • Vale: write-good.Weasel, TooWordy, So, ThereIs, Cliches, Illusions; proselint.Hedging, Cliches, Needless, Typography.Symbols; Google.We, Google.Will, Google.WordList, Google.Exclamation, Google.FirstPerson, Google.Headings.
  • markdownlint: MD040, MD042, MD045, MD051, MD052, MD055, MD056, MD059.
  • lychee offline with --include-fragments: broken local paths and anchors fail.
  • AsciiDoc: asciidoctor --failure-level=WARN -a attribute-missing=warn -a attribute-undefined=warn.
  • rst: rstcheck --report-level warning; doc8 D000.
  • MDX: remark-lint-no-undefined-references, remark-validate-links.

Then:

  • Add markdownlint-cli2 as a tool (config .markdownlint-cli2.jsonc) in the markdown lint default. Strict: all rules on, minus the formatter rules below; MD024 siblings_only; MD033 with a short allowed-element list.
  • Also keep MD001, MD011, MD014, MD018-MD021, MD025, MD034, MD036-MD039, MD046, MD048-MD050, MD053, MD054.
  • vale strict.ini: Vale, write-good, proselint, Google, Dx. MinAlertLevel = warning. Spelling off (typos owns it). Wire vale into markdown, asciidoc and rst strict lint.
  • typos strict _typos.toml: locale = en-us, check-filename, check-file, ignore-hidden = false, excludes for lockfiles and generated files.
  • MDX: remark-preset-lint-recommended.
  • severity() maps for vale, markdownlint, lychee, typos.
  • Update quality.md:155,331,405-432.

Excluded

markdownlint MD004, MD007, MD009, MD010, MD012, MD013, MD022, MD030, MD031, MD032, MD047, MD058 (formatter), MD041 (generated files), MD043, MD044 (project input). Vale Microsoft, E-Prime, write-good.Passive, Google.Passive, Google.Parens. sphinx-lint (project input), doc8 line length. markdownlint-cli (use cli2). remark-lint-no-dead-urls (online only).

Test

  • Corpus fixture per guard rule (TODO, "delve", MD051 bad anchor, MD040 bare fence, broken xref in AsciiDoc) fails under --fail-on warning.
  • Clean fixture passes. tier = "standard" still passes.
  • Update tiers_test.rs.

Verify every rule ID and flag against the pinned tool version before landing; some come from memory.

Part of #14647

Activity

  1. added
    local
    on Nov 22, 2026
  2. TrapsterDK commented on Nov 22, 2026

    @TrapsterDK
    CollaboratorAuthor

    Paths in this issue are from an old layout. Branch from origin/main; quality code is in core/quality/, wrappers in /private/. Rebase on #14647 (strict default) and #14685 (severity floor).

    🤖 Generated with Claude Code

  3. TrapsterDK commented on Nov 23, 2026

    @TrapsterDK
    CollaboratorAuthor

    Remaining for #14660 after #14735:

    • Vendor proselint and Google vale styles (sha256-pinned), enable proselint.Hedging/Cliches/Needless/Typography.Symbols and Google.We/Will/WordList/Exclamation/FirstPerson/Headings in vale strict.ini.
    • Wire vale into the markdown, asciidoc and rst strict default lint lists.
    • Add markdownlint-cli2 as a hermetic tool (.markdownlint-cli2.jsonc, strict rule set, MD024 siblings_only, MD033 allow-list, guard rules MD040/042/045/051/052/055/056/059) in the markdown default lint, with a severity() map.
    • lychee offline with --include-fragments.
    • AsciiDoc: asciidoctor --failure-level=WARN -a attribute-missing=warn -a attribute-undefined=warn.
    • rst: rstcheck --report-level warning, doc8 D000.
    • MDX: remark-preset-lint-recommended, remark-lint-no-undefined-references, remark-validate-links.
    • Corpus fixtures for MD051, MD040 and an AsciiDoc broken xref under --fail-on warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    local

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions