diff options
author | Homu <homu@barosl.com> | 2016-01-29 11:06:33 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-01-29 11:06:33 +0900 |
commit | 00e965d22a2146a072481fc72dfc1cf28c853876 (patch) | |
tree | 7d1567b4be386b1ff3028abc6520b32c6f651e3c | |
parent | 01ff73dd4fe0fbc58715043bb0acde677caab897 (diff) | |
parent | c249ac73e6aed31921af0164eb8d1a827f8164ef (diff) | |
download | bundler-00e965d22a2146a072481fc72dfc1cf28c853876.tar.gz |
Auto merge of #4229 - RochesterinNYC:configure-code-climate-exclusions, r=segiddins
Configure Code Climate exclusions
This PR configures file exclusions for Code Climate test coverage analysis (which files we don't care about "coverage" on) and code analysis.
-rw-r--r-- | .codeclimate.yml | 24 | ||||
-rw-r--r-- | spec/support/code_climate.rb | 13 |
2 files changed, 37 insertions, 0 deletions
diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000000..7e652fa1f4 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,24 @@ +--- +engines: + duplication: + enabled: true + config: + languages: + - ruby + fixme: + enabled: true + rubocop: + enabled: false +ratings: + paths: + - "**.rb" + - "bin/*" + - "exe/*" +exclude_paths: +- bundler.gemspec +- "*.md" +- lib/bundler/ssl_certs/*.pem +- lib/bundler/vendor/**/* +- lib/bundler/templates/**/*.tt +- man/* +- spec/**/* diff --git a/spec/support/code_climate.rb b/spec/support/code_climate.rb index af9bff25b4..cfcd890a40 100644 --- a/spec/support/code_climate.rb +++ b/spec/support/code_climate.rb @@ -3,9 +3,22 @@ module Spec def self.setup require "codeclimate-test-reporter" ::CodeClimate::TestReporter.start + configure_exclusions rescue LoadError # it's fine if CodeClimate isn't set up nil end + + def self.configure_exclusions + SimpleCov.start do + add_filter "/bin/" + add_filter "/lib/bundler/man/" + add_filter "/lib/bundler/vendor/" + add_filter "/man/" + add_filter "/pkg/" + add_filter "/spec/" + add_filter "/tmp/" + end + end end end |