LongSentenceRule.h header
#include <ew/app/LongSentenceRule.h>
Namespace ew::app
LongSentenceRule class
class ew::app::LongSentenceRule
Flags sentences longer than a readability threshold (in words), which are harder to follow and usually benefit from being split. Sentences are delimited by '.', '!', and '?'. The fix is a rewrite, so no replacement is offered.
Members
QString ew::app::LongSentenceRule::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::LongSentenceRule::category() const override
The category of issue this rule reports.
std::vector< StyleDiagnostic > ew::app::LongSentenceRule::analyze(QStringView text) const override
Returns every issue this rule finds in text, with offsets measured into text.