InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises. Learn more →
Top 11 Java static-code-analysis Projects
-
Checkstyle
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.
Project mention: 5 easy paths to become a recognized Java expert. Really. For free. | dev.to | 2022-08-25 -
The generated classes should be put into .gitignore. Otherwise, if you have Checkstyle, PMD, or SonarQube in your project, then generated classes can violate some rules. Besides, if you don't put them into .gitignore, then each pull request might become huge due to the fact that even a slightest fix can lead to lots of changes in the generated classes.
-
InfluxDB
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
-
NullAway
A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead
Does anyone have experience using this at Meta who can compare to https://github.com/uber/NullAway ?
-
Project mention: Primeiros passos no desenvolvimento Java em 2023: um guia particular | dev.to | 2023-01-19
-
Project mention: 7 Laravel Packages to Improve Coding Standards and Reduce Bugs | dev.to | 2022-08-01
PHP Inspections is a static code analyzer and code review tool for PhpStorm IDE.
-
-
Project mention: How does one get this "PHP Control Flow Viewer" sidebar? | reddit.com/r/phpstorm | 2022-02-10
-
Sonar
Write Clean Java Code. Always.. Sonar helps you commit clean code every time. With over 600 unique rules to find Java bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
Project mention: How do you setup coverage/ sanitizers in your CI system. | reddit.com/r/cpp | 2023-01-27
Jenkins for C/C++, at least, also has a small bus factor (https://en.wikipedia.org/wiki/Bus_factor). Without https://github.com/uhafner Jenkins would be little more than a daemon that triggers builds as a reaction to a webhook on pushing. He basically maintains, alone https://plugins.jenkins.io/warnings-ng/, https://plugins.jenkins.io/code-coverage-api/ and other stuff.
-
> All this stuff would be a lot easier if timezones always had to be stated explicitly.
On Java, you can use the forbidden-apis build plugin (https://github.com/policeman-tools/forbidden-apis) to fail the build whenever a timezone or locale or charset is not specified explicitly (it forbids the methods from the Java API which use an implicit timezone/locale/charset). I don't know whether there's something similar for Python; it might be harder because Python is much more dynamic (though it might be possible to use monkeypatching to warn whenever the bad methods are used).
-
-
Java static-code-analysis related posts
- How do you setup coverage/ sanitizers in your CI system.
- Static Code Analyzer for JAVA development: any recommendations ??
- Java Checkstyle reports formatting as a warning, not an error despite my explicit severity
- Checkstyle - development tool to help programmers write Java code that adheres to a coding standard.
- Code smell plugin
- What are some useful static analyzers for Java?
- How to setup CI/CD for org-based development?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 31 Jan 2023
Index
What are some of the best open-source static-code-analysis projects in Java? This list will help you:
Project | Stars | |
---|---|---|
1 | Checkstyle | 7,497 |
2 | PMD | 4,127 |
3 | NullAway | 3,222 |
4 | Spotbugs | 2,939 |
5 | phpinspectionsea | 1,358 |
6 | SonarJava | 985 |
7 | sonar-php | 344 |
8 | warnings-ng-plugin | 317 |
9 | forbidden-apis | 282 |
10 | fb-contrib | 133 |
11 | violation-comments-to-github-command-line | 3 |