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

Add overrideScopes flag to lint check #310

Merged
merged 3 commits into from Dec 12, 2018
Merged

Conversation

ShaishavGandhi
Copy link
Collaborator

Adds an overrideScopes flag that would exclude the default scopes in the lint check.

Resolves #298

properties.property(OVERRIDE_SCOPES, "true")
properties.to(AutoDisposeDetector.PROPERTY_FILE)

lint().files(rxJava2(), LIFECYCLE_OWNER, ACTIVITY, properties, kotlin("""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - for readability, please put each of these args starting on separate lines

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3c42327

Have changed it for the two methods I added but the remaining ones still have it. Can do another PR for those to clean up the formatting there. On a side note, should we think about a checkstyle to enforce conventions?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaning up the rest separately is fine. There's an open issue for code style #154, but in general try to match what the rest of the project does too. My goal would be to use something like spotless

@ZacSweers ZacSweers merged commit ac0ebe6 into master Dec 12, 2018
@ZacSweers ZacSweers deleted the sg/additive-scopes-lint branch December 12, 2018 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants