Class: Moult::Boundaries::Packwerk::Violation

Inherits:
Struct
  • Object
show all
Defined in:
lib/moult/boundaries/packwerk.rb

Overview

A single recorded boundary violation: one referencing file crossing into one constant owned by another package, of one type. Path is root-relative.

Instance Attribute Summary collapse

Instance Attribute Details

#constantObject

Returns the value of attribute constant

Returns:

  • (Object)

    the current value of constant



43
44
45
# File 'lib/moult/boundaries/packwerk.rb', line 43

def constant
  @constant
end

#defining_packageObject

Returns the value of attribute defining_package

Returns:

  • (Object)

    the current value of defining_package



43
44
45
# File 'lib/moult/boundaries/packwerk.rb', line 43

def defining_package
  @defining_package
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



43
44
45
# File 'lib/moult/boundaries/packwerk.rb', line 43

def path
  @path
end

#referencing_packageObject

Returns the value of attribute referencing_package

Returns:

  • (Object)

    the current value of referencing_package



43
44
45
# File 'lib/moult/boundaries/packwerk.rb', line 43

def referencing_package
  @referencing_package
end

#violation_typeObject

Returns the value of attribute violation_type

Returns:

  • (Object)

    the current value of violation_type



43
44
45
# File 'lib/moult/boundaries/packwerk.rb', line 43

def violation_type
  @violation_type
end