Fix the Rubocop offense SpaceAroundOperators
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Wed, 18 Feb 2015 00:27:34 +0000 (02:27 +0200)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 19 Feb 2015 14:58:50 +0000 (16:58 +0200)
Done using
bundle exec rubocop -c .rubocop.yml --auto-correct

Change-Id: I10048311b3cc03d2e3f2d71ba229d5f3437f6d76

.rubocop_todo.yml
maintenance/jsduck/CustomTags.rb

index 904f142..6f10c52 100644 (file)
@@ -35,11 +35,6 @@ Style/HashSyntax:
 Style/PerlBackrefs:
   Enabled: false
 
-# Offense count: 4
-# Cop supports --auto-correct.
-Style/SpaceAroundOperators:
-  Enabled: false
-
 # Offense count: 1
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
index bf0e07f..2de3ac0 100644 (file)
@@ -77,7 +77,7 @@ class SeeTag < CommonTag
       doc = $2 ? ': ' + $2 : ''
       return formatter.format("{@link #{name}} #{doc}")
     else
-      JsDuck::Logger.warn(nil, 'Unexpected @see argument: "'+tag+'"', position)
+      JsDuck::Logger.warn(nil, 'Unexpected @see argument: "' + tag + '"', position)
       return tag
     end
   end
@@ -109,7 +109,7 @@ class ContextTag < CommonTag
       name = $1
       return formatter.format("`context` : {@link #{name}}")
     else
-      JsDuck::Logger.warn(nil, 'Unexpected @context argument: "'+tag+'"', position)
+      JsDuck::Logger.warn(nil, 'Unexpected @context argument: "' + tag + '"', position)
       return tag
     end
   end