Sha256: 01c8613a3be611a39bbf2ed7c5f4a3c63640c6264532c81d1b187eee14e38920

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 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

      def version
        '0.0.4'
      end

    private

      def command_name(_container)
        'durable-json-lint'
      end

      def flags(_container, _options)
        ['--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.15 lib/lint_trap/linter/jsonlint.rb
lint_trap-0.0.14 lib/lint_trap/linter/jsonlint.rb
lint_trap-0.0.13 lib/lint_trap/linter/jsonlint.rb