lib/related_items.rb
Method has too many lines. [12/10] Open
Open
def related_items_hash
@related_items_hash ||=
begin
related_items_hash = {}
related_items_hash['Topic'] = is_a?(Topic) ? related_topics : topics
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.