Merge pull request #1100 from internetee/fine-tune-simplecov-gem-and-code-climate

Fine-tune simplecov gem and code climate
This commit is contained in:
Timo Võhmar 2019-03-12 16:38:49 +02:00 committed by GitHub
commit c80fc22a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 8 deletions

View file

@ -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"

8
.simplecov Normal file
View file

@ -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

View file

@ -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)

View file

@ -1,7 +1,6 @@
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.command_name 'spec'
SimpleCov.start 'rails'
end
require 'webmock/rspec'

View file

@ -1,7 +1,6 @@
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.command_name 'test'
SimpleCov.start 'rails'
end
ENV['RAILS_ENV'] ||= 'test'