Sha256: efd82a556897cee745742cd0cceb30dac789e88900626422cf4be5a778c21673

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to durable-json-lint command line tool.
    class JSONLint < Base
      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

4 entries across 4 versions & 1 rubygems

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