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 reporting SPLATDI001 for non-DI Register calls (#240) #241

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

Govorunb
Copy link
Contributor

@Govorunb Govorunb commented Sep 19, 2024

What kind of change does this PR introduce?
Adds a check that makes sure Register* calls on classes that aren't Splat.SplatRegistrations aren't counted as valid method targets for source generation.

What is the current behavior?
#240

What is the new behavior?
SPLATDI001 only reported on calls to Splat.SplatRegistrations.Register*

What might this PR break?
Hopefully nothing

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:
I'm not exactly sure from a cursory glance if Splat.DI.SG is meant to look at registration calls from other DI providers or not. If so, please let me know if it would be better to check for a specific interface instead.

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.52%. Comparing base (466205e) to head (198bc87).
Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #241      +/-   ##
==========================================
+ Coverage   92.32%   93.52%   +1.19%     
==========================================
  Files          16       16              
  Lines         469      463       -6     
  Branches       50       51       +1     
==========================================
  Hits          433      433              
+ Misses         22       16       -6     
  Partials       14       14              

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

@glennawatson glennawatson merged commit 30535f1 into reactiveui:main Sep 25, 2024
3 checks passed
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants