forbidden-apis VS Spotbugs

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
forbidden-apis Spotbugs
4 17
313 3,326
0.3% 1.2%
6.5 9.6
26 days ago 7 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.
  • Retrofit Java
    1 project | /r/java | 14 May 2021
    Regarding the "deleting them if not necessary any or are deprecated or do not make sense anymore ", something you can use today is this nice maven plugin:forbidden-apis.

Spotbugs

Posts with mentions or reviews of Spotbugs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-19.

What are some alternatives?

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

jreleaser - :rocket: Release projects quickly and easily with JReleaser

SonarQube - Continuous Inspection

gradle-errorprone-plugin - Gradle plugin to use the error-prone compiler for Java

FindBugs - The new home of the FindBugs project

playforia-minigolf - Client & Server for Minigolf Game known from Playforia/Playray/Appeli. Written in Java.

PMD - An extensible multilanguage static code analyzer.

find-sec-bugs - The SpotBugs plugin for security audits of Java web applications and Android applications. (Also work with Kotlin, Groovy and Scala projects)

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

rewrite - Automated mass refactoring of source code.

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.

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