From: Amir E. Aharoni Date: Wed, 18 Feb 2015 00:27:34 +0000 (+0200) Subject: Fix the Rubocop offense SpaceAroundOperators X-Git-Tag: 1.31.0-rc.0~12341^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22upgrade%22%2C%22reinstall=non%22%29%20.%20%22?a=commitdiff_plain;h=c80074ecd225504f0bfdd0a2e0151e34dff2c25f;p=lhc%2Fweb%2Fwiklou.git Fix the Rubocop offense SpaceAroundOperators Done using bundle exec rubocop -c .rubocop.yml --auto-correct Change-Id: I10048311b3cc03d2e3f2d71ba229d5f3437f6d76 --- 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