From 77543134da94fa5edb0e471e1a859b4190eb3cb0 Mon Sep 17 00:00:00 2001 From: a14m Date: Sun, 29 Nov 2020 23:55:44 +0100 Subject: Fix some linting issues --- CLI/ruby/lib/game_of_life/generators/input.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CLI/ruby/lib') diff --git a/CLI/ruby/lib/game_of_life/generators/input.rb b/CLI/ruby/lib/game_of_life/generators/input.rb index 3965131..77adc85 100644 --- a/CLI/ruby/lib/game_of_life/generators/input.rb +++ b/CLI/ruby/lib/game_of_life/generators/input.rb @@ -12,6 +12,9 @@ module GameOfLife # @option options [Numeric] "width" (floored) and used as the width of the universe # @option options [Numeric] "height" (floored) and used as the height of the universe # @return [TODO] + # @smell + # rubocop:disable Metrics/AbcSize as the method needs to do the reading/parsing and initialization of the + # universe array def self.new(options) # By design, it's intentional that we use URI.open to to allow seamless file and url access raw = URI.open(options["input"]).read.split("\n") # rubocop:disable Security/Open @@ -28,8 +31,9 @@ module GameOfLife universe[i][j] = cell end end - return universe + universe end + # rubocop:enable Metrics/AbcSize end end end -- cgit v1.2.3