Merge "Fixed Style/HashSyntax RuboCop offense"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 23 Mar 2015 19:06:33 +0000 (19:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 23 Mar 2015 19:06:33 +0000 (19:06 +0000)
.rubocop_todo.yml
maintenance/jsduck/custom_tags.rb
tests/browser/features/step_definitions/create_account_steps.rb
tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb

index 97ef233..5b8c965 100644 (file)
@@ -5,12 +5,6 @@
 # Note that changes in the inspected code, or installation of new
 # versions of RuboCop, may require this file to be generated again.
 
-# Offense count: 8
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-Style/HashSyntax:
-  Enabled: false
-
 # Offense count: 81
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, SupportedStyles.
index a1f37e4..c326704 100644 (file)
@@ -13,10 +13,10 @@ class CommonTag < JsDuck::Tag::Tag
 
   def parse_doc(scanner, _position)
     if @multiline
-      return { :tagname => @tagname, :doc => :multiline }
+      return { tagname: @tagname, doc: :multiline }
     else
       text = scanner.match(/.*$/)
-      return { :tagname => @tagname, :doc => text }
+      return { tagname: @tagname, doc: text }
     end
   end
 
index 406a67e..03bff66 100644 (file)
@@ -10,7 +10,7 @@
 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
 #
 Given(/^I go to Create account page at (.+)$/) do |path|
-  visit(CreateAccountPage, :using_params => { :page_title => path })
+  visit(CreateAccountPage, using_params: { page_title: path })
 end
 
 Then(/^form has Create account button$/) do
index 065ee26..504d345 100644 (file)
@@ -6,7 +6,7 @@ end
 
 Given(/^I am on the (.+) page$/) do |article|
   article = article.gsub(/ /, '_')
-  visit(ZtargetPage, :using_params => { :article_name => article })
+  visit(ZtargetPage, using_params: { article_name: article })
 end
 
 Given(/^I create page "(.*?)" with content "(.*?)"$/) do |page_title, page_content|