Skip to content

Fix style issues that Vale stops flagging in code-like text - #8628

Merged
florent-leborgne merged 4 commits into
mainfrom
fix-vale-findings-hidden-by-code-skip
Oct 2, 2026
Merged

florent-leborgne merged 4 commits into
mainfrom
fix-vale-findings-hidden-by-code-skip

Conversation

@florent-leborgne

@florent-leborgne florent-leborgne commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes style issues on lines that Vale stops checking after elastic/vale-rules#162.

That PR stops Vale from linting fenced code blocks. Vale can't tell fenced blocks apart from text it reads as indented code, so it also stops checking some prose: definition-list bodies, some indented paragraphs in lists, and comments in code samples. This PR fixes the real issues on those lines now, so they don't stay hidden.

The fixes come from a Vale run on main with the current and the proposed config. Each lost alert was reviewed by hand in context. Only alerts that match an Elastic style guide rule in that context are fixed:

  • "may" where it means possibility, changed to "might". "May" for permission is unchanged.
  • Directional language ("the example above", "described below").
  • Latin abbreviations ("e.g.", "etc."), "and/or", "just", "simply", "easily", and "execute".
  • "or higher", "or newer", and "older version" for versions.
  • Filler phrases ("in order to", "whether or not", "all of the", "prior to", "utilize", "has the ability to").
  • A doubled word ("an an") in a comment on two ECK pages.
  • British spelling ("acknowledgement"), a comma outside a closing quote, an exclamation point, and two semicolons that introduce a fragment.

On the remote cluster pages for Elastic Cloud and ECE, the note now links to the Using the API dropdown instead of saying "described below". The dropdowns get a :name: anchor, and the link opens them.

The Vale check on this PR then flagged a few more issues on the changed lines. These are fixed too: "http" in the SAML troubleshooting page, "not possible" in the ECE architecture page, eight semicolons that now split into two sentences, and two uses of "disabled" that now read "off" and "turned off".

The alerts left unchanged fall into two groups.

False positives:

  • Code, placeholders such as # ..., and command output.
  • applies_to lines, URLs, and image paths.
  • "May" the month.
  • "disable" for turning a setting off. The style guide only restricts it for something broken.
  • "unable" used correctly.
  • Product and setting names, such as SASL and reindex.remote.whitelist.
  • The italic setting descriptions on the Elastic Defend advanced settings page. They are verbatim UI text from Kibana's advanced_policy_schema.ts.

Judgment calls:

  • Semicolons that join two related clauses correctly, on lines this PR doesn't otherwise change.
  • "In addition", "inform", "drag and drop", and "as a result of".
  • "simple" where it means not complex.
  • "terminate" for processes.
  • Quoted status values such as "down".

Vale with the current config reports 128 fewer alerts on the changed files, and no new ones. The proposed config reports no new alerts either. The PR changes 58 files.

The remaining Vale alerts on the changed lines are false positives: "chcon" (a command name) and "blocklisting" (an Elastic Defend term).

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes
  • No

Tool(s) and model(s) used: Cursor, Claude Opus 5.5. The list of alerts comes from Vale. Each fix was checked against the style guide and the page context, and the diff was proofread.

Vale stops checking fenced code blocks and text it reads as indented
code. Fix the real issues on those lines, reviewed by hand in context.

Co-authored-by: Cursor <[email protected]>
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

More links …

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Elastic Docs Style Checker (Vale)

Summary: 4 warnings found

⚠️ Warnings (4): Fix when the suggestion improves clarity or correctness.
File Line Rule Message
deploy-manage/deploy/cloud-on-k8s/configuration-fleet.md 366 Elastic.Spelling 'chcon' is a possible misspelling.
deploy-manage/deploy/cloud-on-k8s/configuration-standalone.md 369 Elastic.Spelling 'chcon' is a possible misspelling.
reference/security/defend-advanced-settings.md 55 Elastic.Spelling 'blocklisting' is a possible misspelling.
reference/security/defend-advanced-settings.md 63 Elastic.Spelling 'blocklisting' is a possible misspelling.

The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@florent-leborgne
florent-leborgne marked this pull request as ready for review October 1, 2026 14:19
@florent-leborgne
florent-leborgne requested review from a team as code owners October 1, 2026 14:19

@yetanothertw yetanothertw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Admin docs subs look good, thank you for cleaning up! 🧹

@mdbirnstiehl mdbirnstiehl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solution side lgtm

@kosabogi kosabogi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@florent-leborgne
florent-leborgne added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 9479752 Oct 2, 2026
13 checks passed
@florent-leborgne
florent-leborgne deleted the fix-vale-findings-hidden-by-code-skip branch October 2, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants