question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: Incorporate Error-Prone

See original GitHub issue

Error-Prone is a static analysis tool from Google that runs a wealth of checks during compilation, and (in my opinion) is a no brainer for most standard Java projects today.

it also supports custom checkers for internal or community checkers. One such community checks that would be useful here could be Uber’s NullAway, giving basically compile-time nullability checking in the project. Most things under the src/test validators package could also be moved to custom error-prone checks that run during compile-time rather than tests, for faster turnaround and also eliminate the need for some annotations to be RUNTIME retained.

Integration is fairly simple in Gradle. If this proposal sounds acceptable, I could start with a basic error-prone integration, and then followups to potentially include other checkers or migrate existing validators could happen after.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
akarnokdcommented, Nov 22, 2018

Again, to satisfy this tool, you’d have to fill up the source code with suppressions, workarounds, mangled structures, etc. I accepted the nullability annotations in the public parts because that’s useful for the consumer of the library. However, messing up the internal parts to suppress false positives which wouldn’t even be there without the tool is wasteful. Remember, the reviewers have to go through all the changed locations anyway and wonder, “which rule required this change and why exactly?”

If you can filter out the noise and truly find an actual mistake, post a PR fixing that specifically without introducing the whole infrastructure. Hence I suggested using the tool only in your own local environment.

0reactions
ZacSweerscommented, Nov 22, 2018

Understood

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Prone Performance Problems. · Issue #994 - GitHub
Hi guys, I'm working on integration of Error Prone into few Lyft Android/Java ... Proposal: Incorporate Error-Prone ReactiveX/RxJava#6318.
Read more >
how to setup error prone with gradle (getting various errors)
I am trying to setup error prone using gradle, however everything ive tried gives me some kind of error: To test I have...
Read more >
Installation - Error Prone
Our goal is to make it simple to add Error Prone checks to your existing Java compilation. Please note that Error Prone must...
Read more >
Structural Dynamics as a Contributor to Error-prone ... - NCBI
We propose that by linking the equilibrium between the binding-occluded and ... Several observations suggest that nucleotide incorporation fidelity of PV ...
Read more >
High Complexity Mode Decision for Error Prone Channel - ITU
In error-prone channel, assuming that the drift and quantization noise are ... If a given technical proposal is not incorporated in a Recommendation ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found