From d0351df7673f595102988ae66df909779c8a6a12 Mon Sep 17 00:00:00 2001 From: Patrick Veverka Date: Tue, 25 Jul 2017 13:07:28 -0400 Subject: [PATCH 1/2] make compilation an environmental flag, not the default --- lib/pronto/credo_runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pronto/credo_runner.rb b/lib/pronto/credo_runner.rb index 7c1e90a..8785179 100644 --- a/lib/pronto/credo_runner.rb +++ b/lib/pronto/credo_runner.rb @@ -10,7 +10,7 @@ def initialize(_, _) def run return [] unless @patches - compile + compile if ENV["PRONTO_CREDO_COMPILE"] @patches.select { |p| p.additions > 0 } .select { |p| elixir_file?(p.new_file_full_path) } From 93382e4f227b0c8e409c67d27090c286e1477423 Mon Sep 17 00:00:00 2001 From: Patrick Veverka Date: Tue, 25 Jul 2017 17:22:22 -0400 Subject: [PATCH 2/2] changes --- lib/pronto/credo_runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pronto/credo_runner.rb b/lib/pronto/credo_runner.rb index 8785179..7fba796 100644 --- a/lib/pronto/credo_runner.rb +++ b/lib/pronto/credo_runner.rb @@ -10,7 +10,7 @@ def initialize(_, _) def run return [] unless @patches - compile if ENV["PRONTO_CREDO_COMPILE"] + compile if ENV["PRONTO_CREDO_COMPILE"] == 1 @patches.select { |p| p.additions > 0 } .select { |p| elixir_file?(p.new_file_full_path) }