Class: VisualizePackwerk::PackageNode

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Includes:
NodeInterface
Defined in:
lib/visualize_packwerk/package_node.rb

Instance Method Summary collapse

Methods included from NodeInterface

#dependencies, #name

Instance Method Details

#depends_on?(node_name) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/visualize_packwerk/package_node.rb', line 24

def depends_on?(node_name)
  dependencies.include?(node_name) || (violations_by_package[node_name] || 0) > 0
end

#group_nameObject



19
20
21
# File 'lib/visualize_packwerk/package_node.rb', line 19

def group_name
  team_name
end

#violations_by_node_nameObject



14
15
16
# File 'lib/visualize_packwerk/package_node.rb', line 14

def violations_by_node_name
  violations_by_package
end