Class: Pronto::Formatter::CheckstyleFormatter

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#config

Constructor Details

#initializeCheckstyleFormatter

Returns a new instance of CheckstyleFormatter.



10
11
12
# File 'lib/pronto/formatter/checkstyle_formatter.rb', line 10

def initialize
  @output = ''
end

Class Method Details

.nameObject



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

def self.name
  'checkstyle'
end

Instance Method Details

#format(messages, _repo, _patches) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/pronto/formatter/checkstyle_formatter.rb', line 14

def format(messages, _repo, _patches)
  open_xml
  process_messages(messages)
  close_xml

  @output
end