Skip to content
Documentation
Rule catalogue

title.length

Keep <title> between 10 and 60 characters

warningper pageheuristic

Why it matters

Past roughly sixty characters the result gets truncated, and the truncation lands wherever it lands. A title that ends mid-word is a title whose promise the reader never saw.

What the finding looks like

The message goflag prints, with example values substituted.

warn title.length Title is 74 characters — long of the recommended 10–60 window.

How to fix it

This rule ships no snippet, because the remedy is a judgement rather than a line of code: the finding tells you what is out of range, and what to put there is yours to decide.

Says who?

This rule is heuristic, and it cites the documentsbelow. Nothing here is goflag’s opinion of what a good page looks like — if you disagree with a finding, this is what you are disagreeing with.