MetaCredo.Check.Refactor.AppendSingleItem (MetaCredo v0.1.0)

View Source

Detects list ++ [item] pattern. Appending to a list with ++ creates a full copy of the left list. Consider prepending with [item | list] and reversing, or using a different data structure.

Category: Refactoring Opportunity / Priority: low