Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Jun 28, 2023
1 parent afd4550 commit dcdc4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rspec_with_simplecov
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ begin
old_verbose = $VERBOSE
$VERBOSE = false

if ENV['COVERAGE'] && ENV['COVERAGE'].empty? && RUBY_VERSION >= '1.9.3'
unless ENV['COVERAGE'] && ENV['COVERAGE'].empty? || RUBY_VERSION < '1.9.3'

Check warning

Code scanning / Rubocop

Checks for expressions containing multiple binary operations with ambiguous precedence. Warning

Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity.

Check notice

Code scanning / Rubocop

Suggests `ENV.fetch` for the replacement of `ENV[]`. Note

Style/FetchEnvVar: Use ENV.fetch('COVERAGE') or ENV.fetch('COVERAGE', nil) instead of ENV['COVERAGE'].
require 'simplecov'

SimpleCov.start do
Expand Down

0 comments on commit dcdc4e1

Please sign in to comment.