diff --git a/.codeclimate.yml b/.codeclimate.yml index e6efd7159..3760d0042 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -22,11 +22,25 @@ plugins: enabled: true channel: rubocop-0-58 exclude_patterns: + - "app/models/legacy/" + - "app/models/version/" - "bin/" - "config/" - "db/" - - "lib/" - - "vendor/" - - "test/" + - "lib/action_controller/" + - "lib/core_ext/" + - "lib/daemons/" + - "lib/gem_ext/" + - "lib/tasks/api_log.rake" + - "lib/tasks/bootstrap.rake" + - "lib/tasks/convert.rake" + - "lib/tasks/db.rake" + - "lib/tasks/documents.rake" + - "lib/tasks/import.rake" + - "lib/tasks/legal_doc.rake" + - "lib/tasks/statuses.rake" + - "lib/tasks/whois.rake" - "spec/" + - "test/" + - "vendor/" - "CHANGELOG.md" diff --git a/.simplecov b/.simplecov new file mode 100644 index 000000000..737a1945c --- /dev/null +++ b/.simplecov @@ -0,0 +1,8 @@ +SimpleCov.start 'rails' do + add_filter '/app/models/legacy/' + add_filter '/app/models/version/' + add_filter '/lib/action_controller/' + add_filter '/lib/core_ext/' + add_filter '/lib/daemons/' + add_filter '/lib/gem_ext/' +end \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index a1e062fd0..e4001872d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -168,7 +168,7 @@ GEM responders warden (~> 1.2.3) diff-lcs (1.3) - docile (1.1.5) + docile (1.3.1) domain_name (0.5.20170404) unf (>= 0.0.5, < 1.0.0) equalizer (0.0.11) @@ -388,8 +388,8 @@ GEM childprocess (~> 0.5) rubyzip (~> 1.2) sexp_processor (4.8.0) - simplecov (0.15.1) - docile (~> 1.1.0) + simplecov (0.16.1) + docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3e1825acb..f10463346 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,6 @@ if ENV['COVERAGE'] require 'simplecov' SimpleCov.command_name 'spec' - SimpleCov.start 'rails' end require 'webmock/rspec' diff --git a/test/test_helper.rb b/test/test_helper.rb index ce5666ece..c040ac346 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,7 +1,6 @@ if ENV['COVERAGE'] require 'simplecov' SimpleCov.command_name 'test' - SimpleCov.start 'rails' end ENV['RAILS_ENV'] ||= 'test'