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

Fix rubocop warnings #1326

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Fix rubocop warnings #1326

merged 2 commits into from
Mar 4, 2024

Conversation

gavindidrichsen
Copy link
Contributor

Summary

Provide a detailed description of all the changes present in this pull request.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@gavindidrichsen gavindidrichsen added the maintenance Internal maintenance work that shouldn't appear in the changelog label Mar 1, 2024
@gavindidrichsen gavindidrichsen force-pushed the maint_fix_rubocop_warnings branch 4 times, most recently from 386f733 to f42e9b8 Compare March 1, 2024 17:38
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.51%. Comparing base (158b3e8) to head (7fa0468).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1326   +/-   ##
=======================================
  Coverage   88.51%   88.51%           
=======================================
  Files         133      133           
  Lines        5666     5666           
=======================================
  Hits         5015     5015           
  Misses        651      651           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gavindidrichsen gavindidrichsen changed the title Maint fix rubocop warnings Fix rubocop warnings Mar 1, 2024
@gavindidrichsen gavindidrichsen force-pushed the maint_fix_rubocop_warnings branch 2 times, most recently from ccd35cd to 5f8998c Compare March 1, 2024 18:22
RSpec/RepeatedSubjectCall: This rule is triggered when the subject is called multiple times in the same example. It's recommended to assign the result of the subject call to a variable and use that variable instead.  This rule is important because it helps to prevent unnecessary computation and potential confusion. In RSpec, the subject is not memoized within an example, meaning that each call to subject will create a new instance of the object under test. This can lead to unexpected behavior if the object's state changes between calls. By assigning the subject to a variable and reusing that variable, you ensure that you're always working with the same object and avoid any potential confusion or bugs.

Signed-off-by: Gavin Didrichsen <[email protected]>
This error appears something like ``RSpec/DescribedClass: Use `described_class` instead of `PDK::Util`.``.  This rule is triggered when the class under test is referenced directly instead of using `described_class`.

Signed-off-by: Gavin Didrichsen <[email protected]>
@gavindidrichsen gavindidrichsen force-pushed the maint_fix_rubocop_warnings branch from 5f8998c to 7fa0468 Compare March 1, 2024 18:22
@gavindidrichsen gavindidrichsen marked this pull request as ready for review March 1, 2024 20:44
@gavindidrichsen gavindidrichsen requested a review from a team as a code owner March 1, 2024 20:44
@jordanbreen28 jordanbreen28 merged commit 4bce7c5 into main Mar 4, 2024
11 checks passed
@jordanbreen28 jordanbreen28 deleted the maint_fix_rubocop_warnings branch March 4, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal maintenance work that shouldn't appear in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants