Sha256: d43665b3e3a6315f047c30e30423d37a66b319d2e9b904601c9054f291e0f7d1

Contents?: true

Size: 510 Bytes

Versions: 23

Compression:

Stored size: 510 Bytes

Contents

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

      def eslint_args
        '-f unix ' + js_files_arr.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

23 entries across 23 versions & 1 rubygems

Version Path
quality-19.0.0 lib/quality/tools/eslint.rb
quality-18.0.1 lib/quality/tools/eslint.rb
quality-18.0.0 lib/quality/tools/eslint.rb