Fix the Rubocop offense TrailingBlankLines
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Wed, 18 Feb 2015 00:31:44 +0000 (02:31 +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: Ieb5d7d47056f6ca17b0016147a057ad10266b6b9

.rubocop_todo.yml
tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb
tests/browser/features/step_definitions/edit_page_steps.rb
tests/browser/features/step_definitions/preferences_appearance_steps.rb
tests/browser/features/step_definitions/preferences_user_profile_steps.rb
tests/browser/features/step_definitions/view_history_steps.rb
tests/browser/features/support/pages/edit_page.rb
tests/browser/features/support/pages/login_error_page.rb
tests/browser/features/support/pages/main_page.rb
tests/browser/features/support/pages/preferences_appearance_page.rb
tests/browser/features/support/pages/ztargetpage.rb

index c2f548a..3edb126 100644 (file)
@@ -40,9 +40,3 @@ Style/PerlBackrefs:
 # Configuration parameters: EnforcedStyle, SupportedStyles.
 Style/StringLiterals:
   Enabled: false
-
-# Offense count: 11
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-Style/TrailingBlankLines:
-  Enabled: false
index 5ab02be..713bb39 100644 (file)
@@ -21,4 +21,3 @@ end
 Then(/^the edited page content should contain "(.*?)"$/) do |content|
   on(MainPage).page_content.should match(content + @random_string)
 end
-
index 1ecc008..6bb7e83 100644 (file)
@@ -5,4 +5,3 @@ end
 Then(/^I should see a link to a previous version of the page$/) do
   on(ViewHistoryPage).old_version_link_element.should be_visible
 end
-
index b619c34..237441e 100644 (file)
@@ -5,4 +5,4 @@ class EditPage
   button(:preview_button, id: "wpPreview")
   button(:show_changes_button, id: "wpDiff")
   button(:save_button, id: "wpSave")
-end
\ No newline at end of file
+end
index 4fc9ca7..fd000e6 100644 (file)
@@ -2,4 +2,4 @@ class LoginErrorPage
   include PageObject
 
   div(:error_box, class: "errorbox")
-end
\ No newline at end of file
+end
index 7d96c2b..8156800 100644 (file)
@@ -16,4 +16,4 @@ class MainPage
   li(:special_pages_link, id: "t-specialpages")
   a(:view_history_link, href: /action=history/)
   li(:what_links_here_link, id: "t-whatlinkshere")
-end
\ No newline at end of file
+end
index c24e386..ed4491e 100644 (file)
@@ -38,4 +38,3 @@ class PreferencesAppearancePage
   radio_button(:vector, id: "mw-input-wpskin-vector")
   radio_button(:year_mo_day_radio, id: "mw-input-wpdate-ymd")
 end
-
index c1f46ec..7f168db 100644 (file)
@@ -4,4 +4,4 @@ class ZtargetPage < MainPage
   include PageObject
 
   a(:link_target_page_link, text: "link to the test target page")
-end
\ No newline at end of file
+end