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. The fix is a rewrite, so no replacement is offered.
Members
ew::app::ClicheRule::ClicheRule()
Constructs the rule, pre-compiling the alternation over the cliché phrases.
QString ew::app::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::ClicheRule::category() const override
The category of issue this rule reports.
std::vector< StyleDiagnostic > ew::app::ClicheRule::analyze(QStringView text) const override
Returns every issue this rule finds in text, with offsets measured into text.