Says many but contains one
The name of an attribute suggests multiple instances, but its type suggests a single one.
Example: attribute stats of type Boolean. Documenting such inconsistencies avoids additional comprehension effort to understand the purpose of the attribute.
Related smells: Says one but contains many
Reference
Venera Arnaoudova, Massimiliano Di Penta, Giuliano Antoniol. “Linguistic antipatterns: what they are and how developers perceive them". in Empirical Software Engineering (ESEM), 21(1), Feb 2016. 104-158. 10.1007/s10664-014-9350-8
Implementation Smells
Home