Layout/SpaceAfterNot:
Enabled: false
-# Cop supports --auto-correct.
-Layout/SpaceAfterSemicolon:
- Exclude:
- - 'app/models/mail_handler.rb'
-
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleInsidePipes.
# SupportedStylesInsidePipes: space, no_space
unless user.valid?
user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].blank?
user.firstname = "-" unless user.errors[:firstname].blank?
- (puts user.errors[:lastname];user.lastname = "-") unless user.errors[:lastname].blank?
+ (puts user.errors[:lastname]; user.lastname = "-") unless user.errors[:lastname].blank?
end
user