From fba53b776c515b145d419fc5144e706aae511e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDeljko=20Filipin?= Date: Wed, 9 Dec 2015 17:09:10 +0100 Subject: [PATCH] Fixed Style/TrailingBlankLines RuboCop offense Change-Id: I7cbfd6d148982039c720fc4fb72e410372a0cbde See: https://github.com/bbatsov/ruby-style-guide#newline-eof Bug: T117984 --- .rubocop_todo.yml | 10 ---------- .../features/step_definitions/mmv_navigation_steps.rb | 2 +- .../features/step_definitions/mmv_performance_steps.rb | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2c13a5a87..e4942937a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -23,16 +23,6 @@ Style/GlobalVars: Style/StringLiterals: Enabled: false -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles. -Style/TrailingBlankLines: - Exclude: - - 'tests/browser/features/step_definitions/mmv_download_steps.rb' - - 'tests/browser/features/step_definitions/mmv_navigation_steps.rb' - - 'tests/browser/features/step_definitions/mmv_options_steps.rb' - - 'tests/browser/features/step_definitions/mmv_performance_steps.rb' - # Offense count: 3 # Configuration parameters: EnforcedStyle, SupportedStyles. Style/VariableName: diff --git a/tests/browser/features/step_definitions/mmv_navigation_steps.rb b/tests/browser/features/step_definitions/mmv_navigation_steps.rb index 00ef247c4..c18c6053f 100644 --- a/tests/browser/features/step_definitions/mmv_navigation_steps.rb +++ b/tests/browser/features/step_definitions/mmv_navigation_steps.rb @@ -41,4 +41,4 @@ Then /^I should be navigated back to the original wiki article$/ do expect(page.image1_in_article_element).to be_visible expect(page.mmv_wrapper_element).not_to be_visible end -end \ No newline at end of file +end diff --git a/tests/browser/features/step_definitions/mmv_performance_steps.rb b/tests/browser/features/step_definitions/mmv_performance_steps.rb index de6b9c928..2aede5a9e 100644 --- a/tests/browser/features/step_definitions/mmv_performance_steps.rb +++ b/tests/browser/features/step_definitions/mmv_performance_steps.rb @@ -46,4 +46,3 @@ Then /^the MMV image is loaded in (\d+) percent of the time with a (.*) cache an expect(mmv_time).to be < expected_time end end -