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

Make types with scope additive by default, add flag to make it exclusive #298

Closed
1 of 2 tasks
ZacSweers opened this issue Dec 3, 2018 · 2 comments
Closed
1 of 2 tasks

Comments

@ZacSweers
Copy link
Collaborator

ZacSweers commented Dec 3, 2018

I suspect most people just want to add custom scopes

  • Lint
  • Error Prone
@ShaishavGandhi
Copy link
Collaborator

Scopes are added to the default Android ones in lint already.

@ZacSweers
Copy link
Collaborator Author

oh neat, then it just needs an exclusive flag

ZacSweers pushed a commit that referenced this issue Dec 7, 2018
This adds a new flag `isScopeExclusive` (open to suggestions) that will make the classes supplied in `TypesWithScope` exclusive and will only perform the check on those classes. 

In the absence of that flag, we will *add* the custom scope classes to the `DEFAULT_CLASSES_WITH_LIFECYCLE` instead of ignoring the default ones. 

Part of #298
@ZacSweers ZacSweers added this to the 1.1.0 milestone Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants