-
Notifications
You must be signed in to change notification settings - Fork 0
Fail to submit comment #1
base: master
Are you sure you want to change the base?
Conversation
end | ||
|
||
begin | ||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new(:rubocop) | ||
rescue LoadError # rubocop:disable Lint/HandleExceptions | ||
rescue LoadError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not suppress exceptions.
end | ||
|
||
task default: [:spec, :rubocop] | ||
task default: [:spec, :rubocop] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final newline missing.
@@ -1,8 +1,15 @@ | |||
# frozen_string_literal: true | |||
# Docs | |||
class Fibonacci | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra empty line detected at class body beginning.
@@ -1,8 +1,15 @@ | |||
# frozen_string_literal: true | |||
# Docs | |||
class Fibonacci | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra blank line detected.
def self.call(n) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra empty line detected at method body beginning.
Hash.new { |hash, key| hash[key] = hash[key - 2] + hash[key - 1] } | ||
.tap { |hash| hash[0] = hash[1] = 1 }[n] | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra blank line detected.
Hash.new { |hash, key| hash[key] = hash[key - 2] + hash[key - 1] } | ||
.tap { |hash| hash[0] = hash[1] = 1 }[n] | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra empty line detected at class body end.
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 trailing blank lines detected.
9297209
to
c26ab73
Compare
@@ -3,15 +3,15 @@ | |||
begin | |||
require 'rspec/core/rake_task' | |||
RSpec::Core::RakeTask.new(:spec) | |||
rescue LoadError # rubocop:disable Lint/HandleExceptions | |||
rescue LoadError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not suppress exceptions.
end | ||
|
||
begin | ||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new(:rubocop) do |task| | ||
task.fail_on_error = false | ||
end | ||
rescue LoadError # rubocop:disable Lint/HandleExceptions | ||
rescue LoadError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not suppress exceptions.
On the second run:
See travis log