Sha256: 57578400bd6f8d11b37959c60f1b52748d52e7f3564ad16baedbb4ddd96364ea

Contents?: true

Size: 374 Bytes

Versions: 6

Compression:

Stored size: 374 Bytes

Contents

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].nil? ? nil : node[:column].to_i,
      node[:severity],
      node[:message],
      node[:source]
    )
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
danger-checkstyle_formatter-0.0.3 lib/checkstyle_formatter/checkstyle_error.rb
danger-checkstyle_formatter-0.0.2 lib/checkstyle_formatter/checkstyle_error.rb
danger-checkstyle_formatter-0.0.1 lib/checkstyle_formatter/checkstyle_error.rb
danger-checkstyle_format-0.1.1 lib/checkstyle_format/checkstyle_error.rb
danger-checkstyle_format-0.1.0 lib/checkstyle_format/checkstyle_error.rb
danger-checkstyle_format-0.0.4 lib/checkstyle_format/checkstyle_error.rb