-
IDEs often provide nice warnings for things like unused variables but to improve consistency between different editors, and catch easy-to-automate issues in pull requests we should use a standard tool not coupled to a particular IDE. Goals:
Please add any tool you personally recommend, vote up your preference, or help address some of the cons in discussion below each possibility. Created from notes on #124 |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Checkstyle |
Beta Was this translation helpful? Give feedback.
-
Error prone |
Beta Was this translation helpful? Give feedback.
-
Spotbugs |
Beta Was this translation helpful? Give feedback.
-
PMD |
Beta Was this translation helpful? Give feedback.
-
Qodana |
Beta Was this translation helpful? Give feedback.
-
Sonar |
Beta Was this translation helpful? Give feedback.
-
General questions/comment thread (don't vote for this one!) |
Beta Was this translation helpful? Give feedback.
-
Infer |
Beta Was this translation helpful? Give feedback.
Sonar
This is a commercial cloud tool that's free for open source projects. It has IDE plugins for eclipse, intellij, and VS code and the cloud analysis tool that can run against github PRs.
Pros: best IDE plugin support, easy integration into github PR workflow, opinionated defaults, github PR analysis only looks at changes in the current PR
Cons: The github PR integration does not add inline annotations - which is the main thing I was looking for, and also you can't run locally via maven without a sonar cloud API key
Example PR: #177