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) Additional Layout cops #9195

Merged

Conversation

mhashizume
Copy link
Contributor

No description provided.

This commit enables the Rubocop Layout/EndAlignment cop and addresses
all offenses.
This commit enables the Rubocop Layout/ExtraSpacing cop and addresses
all offenses.
This commit enables the Rubocop Layout/FirstArgumentIndentation cop and
addresses all offenses.
This commit enables the Rubocop Layout/FirstArrayElementIndentation cop
and addresses all offenses.
@mhashizume mhashizume force-pushed the PUP-11768/main/additional-layout-cops branch 2 times, most recently from f4c29eb to 335fc28 Compare December 20, 2023 19:53
The defaults file for Puppet is lengthy and has distinctive formatting,
this commit outright disables all Rubocop Layout cops for the file.
This commit enables the Rubocop Layout/FirstHashElementIndentation cop
and addresses all offenses.
This commit enables the Rubocop Layout/FirstParameterIndentation cop and
addresses all offenses.
This commit enables the Rubocop Layout/HashAlignment cop and addresses
all offenses.
This commit enables the Rubocop Layout/HeredocIndentation cop and
addresses all offenses.
This commit enables the Rubocop Layout/IndentationConsistency cop and
addresses all offenses.
This commit enables the Rubocop Layout/IndentationStyle cop and
addresses all offenses.
Even with the absurd line length limit of 580,
Puppet::Util::CommandLine::Trollop was causing a violation of the
Rubocop Layout/LineLength cop. We have never had this cop enabled before
and enabling it would likely take quite a lot of work, so we'll disable
it entirely for now.
This commit enables the Rubocop Layout/IndentationWidth cop and
addresses all offenses.
This commit enables the Rubocop Layout/InitialIndentation cop and
addresses all offenses.
The DOT::DOTElement.parent method has been commented out since its
initial addition in 2006 in 3e3f70e.

The Rubucop Layout/LeadingCommentSpace cop flagged it. Instead of
addressing that layout issue, this commit removes the method entirely.
Some conditional code was commented out in 2015 with b1fde14. The
Rubocop Layout/LeadingCommentSpace cop flagged it as an issue but,
because this hasn't been used for over eight years, this commit removes
the code altogether.
This commit removes a debug statement that was originally added in 2006
in 18e8e74. The Rubocop Layout/LeadingCommentSpace cop flagged it, but
it's better to just remove it entirely.
One of the conditions for raising an argument error was commented out in
2014 as part of 2f8428c. The Rubocop Layout/LeadingCommentSpace cop
flagged this as an issue but, instead of resolving the cop, this
commit removes the comment entirely.
This commit enables the Rubocop Layout/LeadingCommentSpace cop and
addresses all offenses.
@mhashizume mhashizume force-pushed the PUP-11768/main/additional-layout-cops branch from 335fc28 to 19bdb37 Compare December 20, 2023 22:08
@mhashizume mhashizume marked this pull request as ready for review December 20, 2023 23:00
@mhashizume mhashizume requested review from a team as code owners December 20, 2023 23:00
@cthorn42 cthorn42 merged commit 2241371 into puppetlabs:main Dec 21, 2023
9 checks passed
@joshcooper joshcooper added the maintenance Maintenance chores are excluded from changelogs label Jan 4, 2024
@mhashizume mhashizume deleted the PUP-11768/main/additional-layout-cops branch January 8, 2024 18:05
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.

3 participants