Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SUPERCILEX
Copy link
Collaborator

ALL HAIL THE LINT GOD, TOR!!! *thunderous applause*

Cough cough, ahem. Did you hear something? 😁

Built on top of #1321 which upgrades lint to a version that suggests adding nullability annotations to all public symbols. Also built on top of #1253 so I don't have to step all over myself.

@SUPERCILEX SUPERCILEX requested a review from samtstern as a code owner May 30, 2018 02:53
@samtstern samtstern changed the base branch from master to version-4.1.0-dev May 31, 2018 16:15
@samtstern samtstern added this to the 4.1.0 milestone May 31, 2018
@samtstern
Copy link
Contributor

@SUPERCILEX I targeted this for 4.1.0 but let me know if that's not right.

@SUPERCILEX
Copy link
Collaborator Author

Nope, that seems right to me.

@samtstern
Copy link
Contributor

@SUPERCILEX this has ~1trillion merge conflicts. Still want to try and get this in for 4.1.0 or should we punt it?

@SUPERCILEX
Copy link
Collaborator Author

Eh, punt it. I'll get back to this later.

@samtstern samtstern modified the milestones: 4.1.0, 4.2.0 Jun 25, 2018
@SUPERCILEX SUPERCILEX changed the base branch from version-4.1.0-dev to version-4.2.0-dev August 28, 2018 01:43
@SUPERCILEX SUPERCILEX changed the title [WIP] Add nullability annotations to all public or protected symbols Start adding nullability annotations to all public or protected symbols Aug 28, 2018
@SUPERCILEX
Copy link
Collaborator Author

@samtstern This one should be fine to merge along with #1421 since it doesn't touch the auth module. πŸ‘

TBH, I feel like the auth module has too many internal classes where nullability annotations don't matter for us to enable it. πŸ€·β€β™‚οΈ


lintOptions {
disable("UnusedQuantity")
disable("UnknownNullness") // TODO fix in future PR
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if there's a way we could disable the nullness check on classes that have @RestrictTo but leave it on other public classes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Damn, that's a great idea! I'll file an issue for Tor.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@samtstern
Copy link
Contributor

@SUPERCILEX LGTM

@samtstern samtstern merged commit 98353a7 into firebase:version-4.2.0-dev Aug 29, 2018
@SUPERCILEX SUPERCILEX deleted the lint-nullablility branch August 29, 2018 17:55
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.

2 participants