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-22.0.0 lib/quality/tools/eslint.rb
quality-21.0.6 lib/quality/tools/eslint.rb
quality-21.0.5 lib/quality/tools/eslint.rb
quality-21.0.4 lib/quality/tools/eslint.rb
quality-21.0.3 lib/quality/tools/eslint.rb
quality-21.0.2 lib/quality/tools/eslint.rb
quality-21.0.1 lib/quality/tools/eslint.rb
quality-20.1.1 lib/quality/tools/eslint.rb
quality-21.0.0 lib/quality/tools/eslint.rb
quality-20.1.0 lib/quality/tools/eslint.rb
quality-20.0.3 lib/quality/tools/eslint.rb
quality-20.0.2 lib/quality/tools/eslint.rb
quality-20.0.1 lib/quality/tools/eslint.rb
quality-20.0.0 lib/quality/tools/eslint.rb
quality-19.2.1 lib/quality/tools/eslint.rb
quality-19.2.0 lib/quality/tools/eslint.rb
quality-19.1.3 lib/quality/tools/eslint.rb
quality-19.1.2 lib/quality/tools/eslint.rb
quality-19.1.1 lib/quality/tools/eslint.rb
quality-19.1.0 lib/quality/tools/eslint.rb