Skip to content

Commit

Permalink
chore: minor rubocop fix (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego authored Jun 28, 2023
1 parent d83c10f commit fd34940
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Style/ClassAndModuleChildren:
EnforcedStyle: compact
Exclude:
- 'lib/rspec/openapi/version.rb'
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
4 changes: 2 additions & 2 deletions .simplecov_spawn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
SimpleCov.command_name 'spawn'
SimpleCov.at_fork.call(Process.pid)
SimpleCov.formatter SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::CoberturaFormatter,
])
SimpleCov::Formatter::CoberturaFormatter,
])
SimpleCov.start do
add_filter '/spec/'
end
Expand Down
7 changes: 4 additions & 3 deletions scripts/rspec_with_simplecov
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ $VERBOSE = true
$0 = 'rspec'

# This is necessary for when `--standalone` is being used.
$:.unshift File.expand_path '../bundle', __dir__
$LOAD_PATH.unshift File.expand_path '../bundle', __dir__

# For the travis build we put the bundle directory up a directory
# so it can be shared among the repos for faster bundle installs.
$:.unshift File.expand_path '../../bundle', __dir__
$LOAD_PATH.unshift File.expand_path '../../bundle', __dir__

require 'bundler/setup'

Expand All @@ -32,7 +32,7 @@ begin
old_verbose = $VERBOSE
$VERBOSE = false

unless ENV['COVERAGE'] && ENV['COVERAGE'].empty? || RUBY_VERSION < '1.9.3'
unless (ENV.fetch('COVERAGE', nil) && ENV['COVERAGE'].empty?) || RUBY_VERSION < '1.9.3'
require 'simplecov'

SimpleCov.start do
Expand All @@ -43,6 +43,7 @@ begin
end
end
rescue LoadError
# simplecov is not available
ensure
$VERBOSE = old_verbose
end
Expand Down

0 comments on commit fd34940

Please sign in to comment.