Sha256: eace3b00466373ef5875201565a9e6ccbb3aeb7080e8a405451b2fbfa6a1dbd3
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true CheckstyleError = Struct.new(:file_name, :line, :column, :severity, :message, :source) do def self.generate(node, parent_node, sub_regex) relative_path = parent_node[:name].sub(sub_regex, "") CheckstyleError.new( relative_path, node[:line].to_i, node[:column]&.to_i, node[:severity], node[:message], node[:source] ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-checkstyle_xml-0.0.4 | lib/checkstyle_format/checkstyle_error.rb |