Sha256: 970803c21e4d77dc93c9b2dfc7ffe5a78027678e1d3a0a08b16ae9b4b0b6f128
Contents?: true
Size: 735 Bytes
Versions: 5
Compression:
Stored size: 735 Bytes
Contents
class BugIssue RANK_ERROR_THRESHOLD = 4 attr_accessor :module_name attr_accessor :buginfo def initialize(module_name, buginfo) @module_name = module_name @buginfo = buginfo end def rank @rack ||= buginfo.attribute("rank").value.to_i end def type @type ||= rank > RANK_ERROR_THRESHOLD ? :warn : :fail end def line @line ||= buginfo.xpath("SourceLine/@start").first.to_s.to_i end def source_path @source_path ||= buginfo.xpath("SourceLine/@sourcepath").first.to_s end def description @description ||= buginfo.xpath("LongMessage/text()").first.text end def absolute_path @absolute_path ||= Pathname.new(module_name).join("src/main/java", source_path).to_s end end
Version data entries
5 entries across 5 versions & 1 rubygems