You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
side-effect introduced: the original code wouldn't raise error when video_started_at is nil. The autocorrected one does raise TypeError: can't convert nil into an exact number
Expected behavior
Rubocop should indicate this can be autocorrected with -A
Actual behavior
Rubocop indicates this can be autocorrected with -a
RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler.
If you see extension cop versions (e.g. rubocop-performance, rubocop-rspec, and others)
output by rubocop -V, include them as well. Here's an example:
Style/RedundantCondition
makes an autocorrect with-a
introducing side-effect forautocorrected:
side-effect introduced: the original code wouldn't raise error when
video_started_at
isnil
. The autocorrected one does raiseTypeError: can't convert nil into an exact number
Expected behavior
Rubocop should indicate this can be autocorrected with
-A
Actual behavior
Rubocop indicates this can be autocorrected with
-a
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler.If you see extension cop versions (e.g.
rubocop-performance
,rubocop-rspec
, and others)output by
rubocop -V
, include them as well. Here's an example:The text was updated successfully, but these errors were encountered: