Class: Pronto::Formatter::CheckstyleFormatter

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

Instance Method Summary collapse

Constructor Details

#initializeCheckstyleFormatter


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