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

(PUP-11768) More Rubocop layout cops #9187

Merged
merged 17 commits into from
Dec 19, 2023

Conversation

mhashizume
Copy link
Contributor

@mhashizume mhashizume commented Dec 18, 2023

This PR largely comprises cops related to empty lines, so the scope is broad but the changes are mostly related to newlines.

@mhashizume mhashizume force-pushed the PUP-11768/main/more-layout-cops branch from 68c7711 to 0eee2b5 Compare December 18, 2023 19:34
@mhashizume mhashizume added the maintenance Maintenance chores are excluded from changelogs label Dec 18, 2023
@mhashizume mhashizume force-pushed the PUP-11768/main/more-layout-cops branch 5 times, most recently from 5e9a440 to 8a64d2d Compare December 19, 2023 18:40
This commit enables the Rubocop Layout/ClosingParenthesisIndentation
cop.
This commit enables the Rubocop Layout/CommentIndentation cop.
This commit enables the Rubocop Layout/DotPosition cop.
This commit enables the Rubocop Layout/ElseAlignment cop. In some
instances (like Puppet::Pal::TaskSignature.runable_with? and
Puppet::Transaction::Report.initialize_from_hash), the new alignment
pushed code past the 80 character line length recommended by the Ruby
style guide and was reformatted to accomodate that.
This commit enables the Rubocop Layout/EmptyLineBetweenDefs cop.
This commit enables the Rubocop Layout/EmptyLines cop.
This commit enables the Rubocop Layout/EmptyLinesAroundAccessModifier
cop.
This commit enables the Rubocop Layout/EmptyLinesAroundArguments cop.
This commit enables the Rubocop Layout/EmptyLinesAroundAttributeAccessor
cop and fixes all offenses.
This commit enables the Rubocop Layout/EmptyLinesAroundBeginBody cop and
fixes the two offenses.
This commit enables the Rubocop Layout/EmptyLinesAroundBlockBody cop and
addresses all offenses.
This commit enables the Rubocop Layout/EmptyLinesAroundClassBody cop and
addresses all offenses.
This commit enables the Rubocop
Layout/EmptyLinesAroundExceptionHandlingKeywords cop and addresses all
offenses.
This commit enables the Rubocop Layout/EmptyLinesAroundMethodBody cop
and addresses all offenses.
This commit enables the Rubocop Layout/EmptyLinesAroundModuleBody cop
and addresses all offenses.
@mhashizume mhashizume force-pushed the PUP-11768/main/more-layout-cops branch from 8a64d2d to 584abe3 Compare December 19, 2023 21:26
This commit enables the Rubocop Layout/EmptyLineAfterGuardClause cop and
fixes all offenses.
This commit enables the Rubocop Layout/EmptyLineAfterMagicComment cop
and fixes all offenses.
@mhashizume mhashizume marked this pull request as ready for review December 19, 2023 21:42
@mhashizume mhashizume requested review from a team as code owners December 19, 2023 21:42
Copy link
Contributor

@joshcooper joshcooper left a comment

Choose a reason for hiding this comment

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

LGTM

$ git diff --ignore-all-space --ignore-blank-lines 3e8e5c718c..HEAD

@mhashizume mhashizume merged commit 9ceca21 into puppetlabs:main Dec 19, 2023
9 checks passed
@mhashizume mhashizume deleted the PUP-11768/main/more-layout-cops branch December 19, 2023 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants