-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rubocop Process Complete #953
Conversation
end | ||
|
||
describe port(55433) do | ||
describe port(55_433) do |
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.
Is this port number correct?
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.
Rubocop states that Numeric Literals should be separated into lengths of no more than 3 digit's each, with underscores in the place of decimals.
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.
I would suggest changing it back and disabling the rule for this line.
|
||
it 'should not run some SQL when the onlyif query returns no rows' do | ||
pp = <<-EOS | ||
pp_seven = <<-MANIFEST.unindent |
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 we need to use .unindent anymore?
According to https://zaiste.net/posts/heredoc_in_ruby/ it will 'remove blank characters up to the column where heredoc starts'. I cannot see any blank characters.
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.
From what I understand it is to unindent the heredoc to the point were at least one line of it has no indents.
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.
That or the first line.
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.
This is due to certain heredocs failing when applied if there are excess indents
Rubocop Process Complete
No description provided.