-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add rule to warn against using scopes with assisted injection #171
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #171 +/- ##
==========================================
+ Coverage 89.47% 89.83% +0.36%
==========================================
Files 21 22 +1
Lines 741 787 +46
Branches 82 84 +2
==========================================
+ Hits 663 707 +44
- Misses 50 51 +1
- Partials 28 29 +1 ☔ View full report in Codecov by Sentry. |
04de865
to
271aa21
Compare
271aa21
to
46e1b47
Compare
3b60a9c
to
1624e34
Compare
82dba24
to
7f734fa
Compare
7f734fa
to
cace876
Compare
c511b5e
to
2c1c72e
Compare
59dc186
to
9fc3830
Compare
139b8cb
to
79b0160
Compare
79b0160
to
7c9a297
Compare
7c9a297
to
52b9587
Compare
0450deb
to
6d489d7
Compare
@@ -270,6 +270,14 @@ annotated with `@Inject` will be supplied. | |||
More information here: [ | |||
`@Component` Dagger documentation](https://dagger.dev/api/latest/dagger/Component.html) | |||
|
|||
### Classes that use `@AssistedInject` cannot be scoped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO make this not suck
/** | ||
* A Lint rule that warns if a class is annotated with any scope annotation but does not have a | ||
* `@Inject` annotation on any constructor that it will not be added to the Dagger graph. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More docs
6d489d7
to
1ede769
Compare
3c7e978
to
2c3e135
Compare
Generated by 🚫 Danger Kotlin against cf0e61d |
2c3e135
to
cf0e61d
Compare
Description
Related Issue
Checklist
./gradlew lint spotlessCheck
)main