Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Fail to submit comment #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fail to submit comment #1

wants to merge 2 commits into from

Conversation

mknapik
Copy link
Owner

@mknapik mknapik commented Oct 18, 2016

On the second run:

♮ PULL_REQUEST_ID=1 pronto run -f github_pr -c origin/master
/.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/github.rb:35:in `create_pull_comment': undefined method `body' for nil:NilClass (NoMethodError)
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/formatter/pull_request_formatter.rb:14:in `block in submit_comments'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/formatter/pull_request_formatter.rb:14:in `each'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/formatter/pull_request_formatter.rb:14:in `submit_comments'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/formatter/git_formatter.rb:10:in `format'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto.rb:59:in `block in run'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto.rb:58:in `each'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto.rb:58:in `run'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/cli.rb:54:in `block in run'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/cli.rb:53:in `chdir'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/lib/pronto/cli.rb:53:in `run'
    from /.rvm/gems/ruby-2.3.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /.rvm/gems/ruby-2.3.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /.rvm/gems/ruby-2.3.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /.rvm/gems/ruby-2.3.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /.rvm/gems/ruby-2.3.1/gems/pronto-0.7.1/bin/pronto:6:in `<top (required)>'
    from /.rvm/gems/ruby-2.3.1/bin/pronto:23:in `load'
    from /.rvm/gems/ruby-2.3.1/bin/pronto:23:in `<main>'
    from /.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
    from /.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'

See travis log

end

begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)
rescue LoadError # rubocop:disable Lint/HandleExceptions
rescue LoadError
Copy link
Owner Author

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]
Copy link
Owner Author

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

Copy link
Owner Author

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


Copy link
Owner Author

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)

Copy link
Owner Author

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


Copy link
Owner Author

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


Copy link
Owner Author

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

Copy link
Owner Author

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.

@mknapik mknapik force-pushed the nil_comments branch 2 times, most recently from 9297209 to c26ab73 Compare October 18, 2016 13:52
@@ -3,15 +3,15 @@
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError # rubocop:disable Lint/HandleExceptions
rescue LoadError
Copy link
Owner Author

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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not suppress exceptions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant