vale: add Qt.LineLength, Qt.Underfilled, and Qt.Spacing rules
Adds three Tengo/existence rules for QDoc sources:
- Qt.LineLength (styles/config/scripts/LineLength.tengo): flags a
line over 80 columns, exempting `//`-commented lines. Counts runes,
not bytes, so a line carrying a multi-byte character (e.g. PSOCâ„¢)
isn't misreported as over-length. Enabled in .vale-qdoc.ini.
- Qt.Underfilled (styles/config/scripts/Underfilled.tengo): flags a
line where the next line's first word would still fit within 80
columns - text wrapped before it needed to be. Added but left
commented out in .vale-qdoc.ini - noisy as-is, pending tuning.
- Qt.Spacing (styles/Qt/Spacing.yml): flags missing or doubled
whitespace after `.`/`?`/`!` before a capital letter. Replaces
Microsoft.Spacing (now disabled), which matches the identical
pattern but false-positives on every Qt/NXP product name written
lowercase-letter + period + uppercase-letter (e.g. i.MX) - Vale does
not consult the vocabulary list for `nonword` existence rules
(errata-ai/vale#1058), so Microsoft.Spacing has no way to exempt it.
Qt.Spacing adds an explicit exceptions list instead.
tests/LineLength.qdoc is an EXPECT-FLAG/EXPECT-CLEAN fixture for
Qt.LineLength - vocabulary terms, macros, and brace commands must not
suppress the rule, and multi-byte characters must not trigger a false
positive.
Change-Id: I22bf89c4a41d1fa1797cf4ba2cd99251db8bba45
Reviewed-by: Alexei Cazacov <alexei.cazacov@qt.io>