Merge pull request #4337 from reitermarkus/simpler-cov

Refactor `.simplecov`.
This commit is contained in:
Markus Reiter 2018-06-13 08:09:50 +02:00 committed by GitHub
commit a58366f4a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,10 +49,9 @@ SimpleCov.start do
add_filter %r{^/vendor/} add_filter %r{^/vendor/}
require "rbconfig" require "rbconfig"
add_filter %r{^/os/mac/} unless RbConfig::CONFIG["host_os"].include?("darwin") host_os = RbConfig::CONFIG["host_os"]
unless RbConfig::CONFIG["host_os"].include?("linux") add_filter %r{^/os/mac/} if host_os !~ /darwin/
add_filter %r{^/os/linux/} add_filter %r{^/os/linux/} if host_os !~ /linux/
end
# Add groups and the proper project name to the output. # Add groups and the proper project name to the output.
project_name "Homebrew" project_name "Homebrew"