Class: LintTrap::Linter::CheckStyle

Inherits:
Base
  • Object
show all
Defined in:
lib/lint_trap/linter/checkstyle.rb

Overview

Encapsulates logic specific to checkstyle command line tool.

Constant Summary collapse

CHECKS_XML =
'checkstyle/sun_checks.xml'

Constants inherited from Base

Base::CONFIG_PATH

Instance Method Summary collapse

Methods inherited from Base

#==, #image, #image_version, #inspect, #known?, #lint, #name

Instance Method Details

#jarObject



17
18
19
# File 'lib/lint_trap/linter/checkstyle.rb', line 17

def jar
  "checkstyle/checkstyle_logger-#{version}-all.jar"
end

#languagesObject



9
10
11
# File 'lib/lint_trap/linter/checkstyle.rb', line 9

def languages
  super(Language::Java)
end

#versionObject



13
14
15
# File 'lib/lint_trap/linter/checkstyle.rb', line 13

def version
  '6.6'
end