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