]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceInsidePercentLiteralDelimiters in app/models/project.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:46:37 +0000 (16:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:46:37 +0000 (16:46 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19280 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/project.rb

index 332554305d8e2e4470196102218396337917cab7..7fa7ed1f710dd79945cbf59a4dd94ac4eee3a5dc 100644 (file)
@@ -306,11 +306,6 @@ Layout/SpaceInsideParens:
     - 'test/unit/issue_subtasking_test.rb'
     - 'test/unit/lib/redmine/export/pdf_test.rb'
 
-# Cop supports --auto-correct.
-Layout/SpaceInsidePercentLiteralDelimiters:
-  Exclude:
-    - 'app/models/project.rb'
-
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
 # SupportedStyles: space, no_space
index d4af06ca1b441293c4803c1b5dc06ea8a8f33357..baeeb8e3ebc7d962e47499fc42f4a3e42d6daf16 100644 (file)
@@ -77,7 +77,7 @@ class Project < ActiveRecord::Base
   # downcase letters, digits, dashes but not digits only
   validates_format_of :identifier, :with => /\A(?!\d+$)[a-z0-9\-_]*\z/, :if => Proc.new { |p| p.identifier_changed? }
   # reserved words
-  validates_exclusion_of :identifier, :in => %w( new )
+  validates_exclusion_of :identifier, :in => %w(new)
   validate :validate_parent
 
   after_save :update_inherited_members, :if => Proc.new {|project| project.saved_change_to_inherit_members?}