Sha256: d866db33947d06c9f187c0bec5ddf0da11d7ecef8c1d8cb0ca35185bd8624081

Contents?: true

Size: 537 Bytes

Versions: 30

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

module Quality
  module Tools
    # Adds 'bigfiles' tool support to quality gem
    module Eslint
      private

      def eslint_args
        '-f unix ' + js_files.join(' ')
      end

      def quality_eslint
        ratchet_quality_cmd('eslint',
                            args: eslint_args,
                            gives_error_code_on_violations: true) do |line|
          if line =~ /^.*:\d+:\d+: /
            1
          else
            0
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
quality-32.1.1 lib/quality/tools/eslint.rb
quality-32.1.0 lib/quality/tools/eslint.rb
quality-32.0.0 lib/quality/tools/eslint.rb
quality-31.3.0 lib/quality/tools/eslint.rb
quality-31.2.1 lib/quality/tools/eslint.rb
quality-31.2.0 lib/quality/tools/eslint.rb
quality-31.1.0 lib/quality/tools/eslint.rb
quality-31.0.0 lib/quality/tools/eslint.rb
quality-30.0.1 lib/quality/tools/eslint.rb
quality-30.0.0 lib/quality/tools/eslint.rb
quality-29.0.0 lib/quality/tools/eslint.rb
quality-28.0.0 lib/quality/tools/eslint.rb
quality-27.4.0 lib/quality/tools/eslint.rb
quality-27.3.1 lib/quality/tools/eslint.rb
quality-27.3.0 lib/quality/tools/eslint.rb
quality-27.2.0 lib/quality/tools/eslint.rb
quality-27.1.1 lib/quality/tools/eslint.rb
quality-27.1.0 lib/quality/tools/eslint.rb
quality-27.0.0 lib/quality/tools/eslint.rb
quality-26.0.0 lib/quality/tools/eslint.rb