Merge "Fix the Rubocop offense SpaceAroundOperators"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 20 Feb 2015 12:05:09 +0000 (12:05 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 20 Feb 2015 12:05:09 +0000 (12:05 +0000)
.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