lib/rubocop/cop/rails/blank.rb in rubocop-rails-2.14.2 vs lib/rubocop/cop/rails/blank.rb in rubocop-rails-2.15.0
- old
+ new
@@ -1,20 +1,20 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Rails
- # This cop checks for code that can be written with simpler conditionals
+ # Checks for code that can be written with simpler conditionals
# using `Object#blank?` defined by Active Support.
#
# Interaction with `Style/UnlessElse`:
# The configuration of `NotPresent` will not produce an offense in the
# context of `unless else` if `Style/UnlessElse` is inabled. This is
- # to prevent interference between the auto-correction of the two cops.
+ # to prevent interference between the autocorrection of the two cops.
#
# @safety
- # This cop is unsafe auto-correction, because `' '.empty?` returns false,
- # but `' '.blank?` returns true. Therefore, auto-correction is not compatible
+ # This cop is unsafe autocorrection, because `' '.empty?` returns false,
+ # but `' '.blank?` returns true. Therefore, autocorrection is not compatible
# if the receiver is a non-empty blank string, tab, or newline meta characters.
#
# @example NilOrEmpty: true (default)
# # Converts usages of `nil? || empty?` to `blank?`
#