From c80074ecd225504f0bfdd0a2e0151e34dff2c25f Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Wed, 18 Feb 2015 02:27:34 +0200 Subject: [PATCH] Fix the Rubocop offense SpaceAroundOperators Done using bundle exec rubocop -c .rubocop.yml --auto-correct Change-Id: I10048311b3cc03d2e3f2d71ba229d5f3437f6d76 --- .rubocop_todo.yml | 5 ----- maintenance/jsduck/CustomTags.rb | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 904f1424b5..6f10c52ba4 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/maintenance/jsduck/CustomTags.rb b/maintenance/jsduck/CustomTags.rb index bf0e07fd16..2de3ac0e9f 100644 --- a/maintenance/jsduck/CustomTags.rb +++ b/maintenance/jsduck/CustomTags.rb @@ -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 -- 2.20.1