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 lint warnings and reenable abortOnError #62

Closed
passy opened this issue Apr 5, 2017 · 8 comments
Closed

Fix lint warnings and reenable abortOnError #62

passy opened this issue Apr 5, 2017 · 8 comments

Comments

@passy
Copy link
Member

passy commented Apr 5, 2017

Lint doesn't have the highest opinion of us at the moment and we had to disable abortOnError as a consequence. Some of the issues are just noise, others are signal.

We should suppress those that we're okay with in code and fix the ones we're not.

This is a good task for new contributors.

@pavlospt
Copy link
Contributor

pavlospt commented May 9, 2017

@passy Is there a list of those, that you are ok with?

I mean there are lint errors like:

  • view.setForeground(null); that are safe-guarded with an API check before accessing them, although Lint does not understand it. One solution could be to reverse the API check and run that method only then, that would satisfy the Lint I suppose.

@passy
Copy link
Member Author

passy commented May 9, 2017

@pavlospt That sounds pretty reasonable.

We don't have a list right now. I think it might be best to tackle these in a few individual PRs. There may be some that are a bit more invasive and require some thought but a bunch of them are probably just missing annotations or places where we could use @SuppressLint if it's clear that Lint is overly sensitive.

@pavlospt
Copy link
Contributor

pavlospt commented May 9, 2017

@passy Ok I understand what you mean. Will try to create a PR covering most of them so that we can discuss what is acceptable and should be suppressed and what not :)

@passy
Copy link
Member Author

passy commented May 9, 2017

@pavlospt Awesome!

@pavlospt
Copy link
Contributor

If this one is still relevant I think I can prepare the PR I said some time ago 😂

@passy
Copy link
Member Author

passy commented Apr 23, 2018

Oh yeah, that would be awesome. Would love to get rid of some more lint warnings. :)

@pavlospt
Copy link
Contributor

A nice alternative to this would be using a Lint baseline file and fix issues in parallel!

@colriot
Copy link
Contributor

colriot commented Jun 4, 2019

Hey @pavlospt ! Were there any progress about that? I think we may enable Lint baseline for this config and switch abortOnError on again

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

No branches or pull requests

5 participants