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