From 77faa485b4cc7c863733a4f1f554862064e12a48 Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Mon, 25 Feb 2019 00:22:30 +0200 Subject: [PATCH] rubocop: fix offences of the Layout/EmptyLineAfterMagicComment cop --- .rubocop_todo.yml | 7 ------- lib/pry/pry_instance.rb | 1 + lib/pry/terminal.rb | 1 + 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 242fbd08..a038970d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -13,13 +13,6 @@ Gemspec/RequiredRubyVersion: Exclude: - 'pry.gemspec' -# Offense count: 2 -# Cop supports --auto-correct. -Layout/EmptyLineAfterMagicComment: - Exclude: - - 'lib/pry/pry_instance.rb' - - 'lib/pry/terminal.rb' - # Offense count: 10 # Cop supports --auto-correct. Layout/EmptyLinesAroundAccessModifier: diff --git a/lib/pry/pry_instance.rb b/lib/pry/pry_instance.rb index 4b15f32b..fb0f86e4 100644 --- a/lib/pry/pry_instance.rb +++ b/lib/pry/pry_instance.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- + ## # Pry is a powerful alternative to the standard IRB shell for Ruby. It # features syntax highlighting, a flexible plugin architecture, runtime diff --git a/lib/pry/terminal.rb b/lib/pry/terminal.rb index 8bce0ed8..f57268ff 100644 --- a/lib/pry/terminal.rb +++ b/lib/pry/terminal.rb @@ -1,4 +1,5 @@ # coding: utf-8 + class Pry::Terminal class << self # Return a pair of [rows, columns] which gives the size of the window.