forbidden-apis VS Checkstyle

Compare forbidden-apis vs Checkstyle and see what are their differences.

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. (by checkstyle)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
forbidden-apis Checkstyle
4 15
313 8,112
0.3% 0.6%
6.5 9.9
24 days ago 5 days ago
Java Java
Apache License 2.0 GNU Lesser General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

forbidden-apis

Posts with mentions or reviews of forbidden-apis. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-09.
  • Stop Using Utcnow and Utcfromtimestamp
    3 projects | news.ycombinator.com | 9 Oct 2022
    > 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).

  • Decluttering Google Guava
    7 projects | /r/java | 19 Jun 2022
    Is https://github.com/policeman-tools/forbidden-apis something that might help you in the interim?
  • What are some useful static analyzers for Java?
    9 projects | /r/java | 2 Jan 2022
    Besides the classic pmd/stopbugs/jacoco/owasp, a favorite of mine is forbidden-apis.

Checkstyle

Posts with mentions or reviews of Checkstyle. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-25.

What are some alternatives?

When comparing forbidden-apis and Checkstyle you can also consider the following projects:

spotless - Keep your code spotless

SonarQube - Continuous Inspection

Spotbugs - SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.

Error Prone - Catch common Java mistakes as compile-time errors

PMD - An extensible multilanguage static code analyzer.

infer - A static analyzer for Java, C, C++, and Objective-C

SonarJava - :coffee: SonarSource Static Analyzer for Java Code Quality and Security

Sourcetrail - Sourcetrail - free and open-source interactive source explorer

Spoon - Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API.

jQAssistant - Your Software. Your Structures. Your Rules.

NullAway - A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead

FindBugs - The new home of the FindBugs project