Skip to content

Commit

Permalink
QUA-543: hide sensitive information and bump cc-parser version (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
camillof authored May 5, 2022
1 parent 97be4bd commit 5a6fef1
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM codeclimate/codeclimate-parser:b871
FROM codeclimate/codeclimate-parser:b879
LABEL maintainer="Code Climate <hello@codeclimate.com>"

# 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"]
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -57,4 +57,4 @@ DEPENDENCIES
sexp_processor (~> 4.11)

BUNDLED WITH
1.10.6
2.3.12
2 changes: 1 addition & 1 deletion lib/cc/engine/analyzers/analyzer_base.rb
Original file line number Diff line number Diff line change
@@ -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.")

0 comments on commit 5a6fef1

Please sign in to comment.