vale: suppress Microsoft.Spacing false positives on Qt module names
Add a TokenIgnores pattern for qualified Qt module names of the form
Qt[Module](.Component)+ so that names like QtQuick.Layouts,
QtQml.Models, Qt.labs.qmlmodels, and QtQuick3D.Effects are blanked
before Microsoft.Spacing processes the text. The rule's pattern
[a-z][.?!][A-Z] would otherwise fire on the period in these names,
for example 'l.M' in QtQml.Models. No regex can separate the two
cases: a qualified identifier and a missing-space sentence boundary
are lexically identical, so this entry also blanks genuine
violations that follow a Qt module name.
Enumerate the allowed QtQuick and QtQml module name patterns. An
enumerated list keeps the blanked surface as small as possible and
avoids swallowing a real sentence boundary after an invented name
like QtQuick.Then. Anything the pattern blanks is invisible to every
enabled rule, including Qt.Spelling.
Add test cases to MicrosoftRules.qdoc covering the full range of
QtQuick and QtQml module name patterns, including multi-level names
(QtQuick.Controls.Material, QtQuick.VirtualKeyboard.Settings) and
Qt.labs.* experimental modules. A regression case verifies that a
sentence boundary next to a module name still fires, and a SHOULD
WARN block verifies the spacing rule fires on genuine violations.
Change-Id: Icd09988249e3a1a5c52a62c16662c1a986d1098d
Reviewed-by: Alexei Cazacov <alexei.cazacov@qt.io>
Reviewed-by: Jerome Pasion <jerome.pasion@qt.io>