Class: Pronto::Formatter::CheckstyleFormatter

Inherits:
Base
  • Object
show all
Defined in:
lib/pronto/formatter/checkstyle_formatter.rb

Instance Method Summary collapse

Methods inherited from Base

#config, name

Constructor Details

#initializeCheckstyleFormatter

Returns a new instance of CheckstyleFormatter.



6
7
8
# File 'lib/pronto/formatter/checkstyle_formatter.rb', line 6

def initialize
  @output = ''
end

Instance Method Details

#format(messages, _, _) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/pronto/formatter/checkstyle_formatter.rb', line 10

def format(messages, _, _)
  open_xml
  process_messages(messages)
  close_xml

  @output
end