Skip to content

fix(docs): clear the Vale findings, and fix the rule that produced most of them - #429

Open
eugenia-scandit wants to merge 1 commit into
mainfrom
fix/vale-prose-debt
Open

fix(docs): clear the Vale findings, and fix the rule that produced most of them#429
eugenia-scandit wants to merge 1 commit into
mainfrom
fix/vale-prose-debt

Conversation

@eugenia-scandit

Copy link
Copy Markdown
Collaborator

233 findings across 57 files. Only 79 were real.

Google.Spacing matches [a-z][.?!][A-Z] anywhere, which in API documentation is overwhelmingly a code identifier rather than a sentence: SymbologySettings.Checksums, context.SetFrameSourceAsync(), Scandit.DataCapture.Core.Maui. Of its 155 findings, 154 were identifiers and exactly one was a real missing space. Acting on the other 154 would have corrupted a symbol name each time - so the rule needed fixing, not the prose.

styles/Scandit/Spacing.yml replaces it (Google.Spacing = NO in .vale.ini) and expresses the sentence boundary positionally, since RE2 has no lookaround: a whole lowercase word, the punctuation, then a single capitalised word, with whitespace on both outer edges. An identifier fails at least one part. It still catches the one real case ("smart device.It requires").

An earlier attempt used TokenIgnores instead. It silently swallowed "e.g." and "i.e." too, disabling Google.Latin - 46 real findings vanished and looked like success. Worth recording: the cheap fix here quietly removes a rule you wanted.

The remaining 79 are fixed as prose:

  • 46 Latin abbreviations (e.g. / i.e. spelled out)
  • 18 banned marketing words - "seamless user experience" -> "responsiveness", "ensures seamless integration into your workflow" -> "fits into your workflow", "simply change" -> "change", and so on: what the sentence claims, minus the adjective that claimed it
  • 8 optional plurals: item(s) -> items, plugin(s) -> plugins
  • 2 ordinals (3rd-Party -> Third-Party), 2 em dashes, 1 quote placement, 1 unit spacing, 1 missing space after a full stop

Replacements are applied outside fenced and inline code only, so no snippet changed meaning; the one finding inside a code comment was reworded by hand. Vale now reports 0 findings across all 117 files, and the site builds.

…st of them

233 findings across 57 files. Only 79 were real.

Google.Spacing matches `[a-z][.?!][A-Z]` anywhere, which in API documentation
is overwhelmingly a code identifier rather than a sentence:
SymbologySettings.Checksums, context.SetFrameSourceAsync(),
Scandit.DataCapture.Core.Maui. Of its 155 findings, 154 were identifiers and
exactly one was a real missing space. Acting on the other 154 would have
corrupted a symbol name each time - so the rule needed fixing, not the prose.

styles/Scandit/Spacing.yml replaces it (Google.Spacing = NO in .vale.ini) and
expresses the sentence boundary positionally, since RE2 has no lookaround: a
whole lowercase word, the punctuation, then a single capitalised word, with
whitespace on both outer edges. An identifier fails at least one part. It
still catches the one real case ("smart device.It requires").

An earlier attempt used TokenIgnores instead. It silently swallowed "e.g."
and "i.e." too, disabling Google.Latin - 46 real findings vanished and looked
like success. Worth recording: the cheap fix here quietly removes a rule you
wanted.

The remaining 79 are fixed as prose:
- 46 Latin abbreviations (e.g. / i.e. spelled out)
- 18 banned marketing words - "seamless user experience" -> "responsiveness",
  "ensures seamless integration into your workflow" -> "fits into your
  workflow", "simply change" -> "change", and so on: what the sentence claims,
  minus the adjective that claimed it
-  8 optional plurals: item(s) -> items, plugin(s) -> plugins
-  2 ordinals (3rd-Party -> Third-Party), 2 em dashes, 1 quote placement,
   1 unit spacing, 1 missing space after a full stop

Replacements are applied outside fenced and inline code only, so no snippet
changed meaning; the one finding inside a code comment was reworded by hand.
Vale now reports 0 findings across all 117 files, and the site builds.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

🚀 View preview at
https://Scandit.github.io/data-capture-documentation/pr-preview/pr-429/

Built to branch gh-pages at 2026-08-20 16:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

1 participant