Skip to content
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

Merged
merged 1 commit into from
Feb 15, 2018
Merged

Rubocop Process Complete #953

merged 1 commit into from
Feb 15, 2018

Conversation

david22swan
Copy link
Member

No description provided.

end

describe port(55433) do
describe port(55_433) do
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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
Copy link
Contributor

@pmcmaw pmcmaw Feb 15, 2018

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.

Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Member Author

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

@pmcmaw pmcmaw merged commit 52ea030 into puppetlabs:master Feb 15, 2018
@david22swan david22swan deleted the Rubocop branch February 26, 2018 15:03
cegeka-jenkins pushed a commit to cegeka/puppet-postgresql that referenced this pull request Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants