diff --git a/Dockerfile b/Dockerfile index 077c3fa..69470d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM codeclimate/codeclimate-parser:b871 +FROM codeclimate/codeclimate-parser:b879 LABEL maintainer="Code Climate " # Reset from base image @@ -24,5 +24,7 @@ RUN chown -R app:app ./ USER app +# Hide deprecation warnings +ENV RUBYOPT="-W0" ENTRYPOINT ["/usr/src/app/entrypoint"] CMD ["/usr/src/app/bin/duplication", "/code", "/config.json"] diff --git a/Gemfile.lock b/Gemfile.lock index a16a6d1..f7f6fd5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -57,4 +57,4 @@ DEPENDENCIES sexp_processor (~> 4.11) BUNDLED WITH - 1.10.6 + 2.3.12 diff --git a/lib/cc/engine/analyzers/analyzer_base.rb b/lib/cc/engine/analyzers/analyzer_base.rb index 48b9039..aa144ce 100644 --- a/lib/cc/engine/analyzers/analyzer_base.rb +++ b/lib/cc/engine/analyzers/analyzer_base.rb @@ -42,7 +42,7 @@ def run(file) end rescue => ex if RESCUABLE_ERRORS.map { |klass| ex.instance_of?(klass) }.include?(true) - CC.logger.info("Skipping file #{file} due to exception (#{ex.class}): #{ex.message}\n#{ex.backtrace.join("\n")}") + CC.logger.info("Skipping file #{file} due to exception (#{ex.class}): #{ex.message}\n") nil else CC.logger.info("#{ex.class} error occurred processing file #{file}: aborting.")