Sha256: 30b1db999112e467644fe16d01d303f2e89075dc07c2fae5c738a4a2f6a74974

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to checkstyle command line tool.
    class CheckStyle < Base
      CHECKS_XML = 'checkstyle/sun_checks.xml'

      def version
        '6.6'
      end

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

    private

      def command_name(_container)
        'java'
      end

      def flags(container, options)
        [
          '-jar', container.config_path(jar),
          '-c', options[:config] || container.config_path(CHECKS_XML)
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lint_trap-0.0.19 lib/lint_trap/linter/checkstyle.rb
lint_trap-0.0.18 lib/lint_trap/linter/checkstyle.rb
lint_trap-0.0.17 lib/lint_trap/linter/checkstyle.rb
lint_trap-0.0.16 lib/lint_trap/linter/checkstyle.rb