ClicheRule.h header
#include <ew/app/ClicheRule.h>
Namespace ew::app
ClicheRule class
class ew::app::ClicheRule
Flags worn-out clichés ("at the end of the day", "think outside the box") that read as filler and are worth replacing with something fresher. Matching is case-insensitive and whole-phrase. A cliché with a plain-language equivalent that drops in verbatim offers it as a fix; one that is a whole clause or an image with no compact paraphrase offers none, since a wrong one-click rewrite is worse than an explained problem.
Members
ew::app::style::ClicheRule::ClicheRule()
Constructs the rule, pre-compiling the alternation over the cliché phrases.
QString ew::app::style::ClicheRule::id() const override
A stable identifier for this rule (e.g. "repeated-word"), used to enable or disable it in a profile and to refer to it in tests.
StyleCategory ew::app::style::ClicheRule::category() const override
The category of issue this rule reports.
std::vector< StyleDiagnostic > ew::app::style::ClicheRule::analyze(QStringView text) const override
Returns every issue this rule finds in text, with offsets measured into text.