From b338a7ad2866cec61a0409fc0745c18d8883d9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mindaugas=20Moz=C5=ABras?= Date: Mon, 14 Mar 2016 23:08:08 +0200 Subject: Depend on newest versions of pronto and eslint (less strictly) --- lib/pronto/eslint.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/pronto') diff --git a/lib/pronto/eslint.rb b/lib/pronto/eslint.rb index 67e9229..b6ccff1 100644 --- a/lib/pronto/eslint.rb +++ b/lib/pronto/eslint.rb @@ -3,10 +3,10 @@ require 'eslintrb' module Pronto class ESLint < Runner - def run(patches, _) - return [] unless patches + def run + return [] unless @patches - patches.select { |patch| patch.additions > 0 } + @patches.select { |patch| patch.additions > 0 } .select { |patch| js_file?(patch.new_file_full_path) } .map { |patch| inspect(patch) } .flatten.compact @@ -26,7 +26,7 @@ module Pronto path = line.patch.delta.new_file[:path] level = :warning - Message.new(path, line, level, offence['message']) + Message.new(path, line, level, offence['message'], nil, self.class) end def js_file?(path) -- cgit v1.2.3