Why this matters
Avoid redundant words in titles that repeat the surrounding context. For example, a class titled `Car` should not have a method `carDrive()`; instead, use `drive()`. Redundant naming decreases readability and clarity.
Check if the method, variable, or class title contains redundant context (e.g., using 'carDrive()' when 'drive()' would suffice). Ensure the title is concise and avoids repetition of surrounding context.
Avoid redundant words in titles that repeat the surrounding context. For example, a class titled `Car` should not have a method `carDrive()`; instead, use `drive()`. Redundant naming decreases readability and clarity.
Side-by-side examples engineers can pattern-match during review.
class RadioButtonWidget extends Widget {
/// Sets the tooltip for this radio button widget to the list of strings in
/// [lines].
void tooltip(List<String> lines) {
...
}
}class RadioButtonWidget extends Widget {
/// Sets the tooltip to [lines], which should have been word wrapped using
/// the current font.
void tooltip(List<String> lines) {
...
}
}class RadioButtonWidget extends Widget {
/// Sets the tooltip for this radio button widget to the list of strings in
/// [lines].
void tooltip(List<String> lines) {
...
}
}class RadioButtonWidget extends Widget {
/// Sets the tooltip to [lines], which should have been word wrapped using
/// the current font.
void tooltip(List<String> lines) {
...
}
}From the same buckets as this rule.