Sha256: b6d41ccac56b353da3325e3a4c50eb00c7aa9f83c8c328ace14efcc063c7ee2d

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to durable-json-lint command line tool.
    class JSONLint < Base
      def languages
        super(Language::JSON)
      end

    private

      def command_name
        'durable-json-lint'
      end

      def flags
        ['--format', '{{file}}:{{line}}:{{column}}:::error:{{{description}}}']
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lint_trap-0.0.11 lib/lint_trap/linter/jsonlint.rb
lint_trap-0.0.10 lib/lint_trap/linter/jsonlint.rb
lint_trap-0.0.9 lib/lint_trap/linter/jsonlint.rb