Class: Hashira::Smells::BoundarySprawl

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/smells/boundary_sprawl.rb

Constant Summary collapse

KIND =
"boundary_sprawl"
METHOD_FLOOR =
12
FILE_FLOOR =
3
SHOWN =
4

Instance Method Summary collapse

Constructor Details

#initialize(subjects, ownership) ⇒ BoundarySprawl

Returns a new instance of BoundarySprawl.



12
13
14
15
# File 'lib/hashira/smells/boundary_sprawl.rb', line 12

def initialize(subjects, ownership)
  @subjects = subjects
  @ownership = ownership
end

Instance Method Details

#findingsObject



17
18
19
# File 'lib/hashira/smells/boundary_sprawl.rb', line 17

def findings
  reaches.filter_map { |root, contexts| finding(root, contexts) }
end