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

Check fixes #9526

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Check fixes #9526

merged 3 commits into from
Nov 26, 2024

Conversation

mhashizume
Copy link
Contributor

This PR comprises several fixes for tests and checks including:

  • Updating a test to handle the URI version used in newer Rubies (> 3.0)
  • Handle the change in behavior in newer JSON versions for empty arrays and hashes
  • Exclude files for Style/AccessModifierDeclarations cop

The URI gem recently updated its error messages to include a space where
there previously was not one: ruby/uri@9f2c7ed

This commit updates our test to reflect that change.

(cherry picked from commit c3a5090)
The JSON gem has historically included newlines when pretty printing
empty arrays or hashes. This changed with ruby/json@b2c4480 in JSON
2.8.0.

In order to maintain consistent behavior for our users, this commit
special cases empty array and hash facts and adds a new test for empty
hashes.

(cherry picked from commit 295d2f9)
Rubocop recently started flagging several files for violations of the
Style/AccessModifierDeclarations cop.

This only occurs in 7.x as many Rubocop fixes have landed in main/8.x.
Because 7.x is so close to its end-of-life, these violations aren't
really worth fixing and this commit excludes them from the cop.
@mhashizume mhashizume added the maintenance Maintenance chores are excluded from changelogs label Nov 26, 2024
@mhashizume mhashizume requested a review from a team as a code owner November 26, 2024 17:54
@cthorn42 cthorn42 merged commit 55c4486 into puppetlabs:7.x Nov 26, 2024
12 checks passed
@mhashizume mhashizume deleted the maint/7.x/check-fixes branch November 26, 2024 22:09
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