lib/pmd/pmd_violation.rb in danger-pmd-0.0.5 vs lib/pmd/pmd_violation.rb in danger-pmd-0.1.0

- old
+ new

@@ -1,13 +1,11 @@ # frozen_string_literal: true class PmdViolation PRIORITY_ERROR_THRESHOLD = 2 - attr_accessor :module_name attr_accessor :violation - def initialize(module_name, violation) - @module_name = module_name + def initialize(violation) @violation = violation end def priority @priority ||= violation.attribute("priority").value.to_i