Skip to content

Wrong license name resolution into SPDX id #6

@tmortagne

Description

@tmortagne

The following license names are not resolved at all (it is expected for some of them to not be resolvable, but I prefer listing everything I found to be safe):

  • GPL
  • The BSD License
  • Similar to Apache License but with the acknowledgment clause removed
  • BSD
  • Apache Software Licenses
  • UnRar License
  • Java HTML Tidy License
  • Jython Software License
  • Public Domain
  • Indiana University Extreme! Lab Software License
  • Bouncy Castle Licence
  • Unicode/ICU License
  • BSD licence
  • Go License
  • Eclipse Public License (EPL)
  • BSD License
  • GNU Lesser General Public License
  • CDDL License
  • GNU Lesser General Public Licence

The following are resolved but are not giving the expected result:

  • CDDL + GPLv2 -> GPL-2.0-only
  • CC BY 3.0 -> GPL-3.0-only
  • EDL 1.0 -> GPL-1.0-only
  • Eclipse Distribution License v. 1.0 -> EPL-1.0 (I'm not sure if "Eclipse Distribution License" and "Eclipse Public License" really are the same thing)
  • Eclipse Distribution License - v 1.0 -> EPL-1.0 (I'm not sure if "Eclipse Distribution License" and "Eclipse Public License" really are the same thing)

Here is the complete report in case I forgot something (or as unit test data):

[INFO]   * Unknown SPDX license:
[INFO]     * GPL
[INFO]     * The BSD License
[INFO]     * Similar to Apache License but with the acknowledgment clause removed
[INFO]     * Apache Software Licenses
[INFO]     * UnRar License
[INFO]     * Java HTML Tidy License
[INFO]     * Jython Software License
[INFO]     * Public Domain
[INFO]     * Indiana University Extreme! Lab Software License
[INFO]     * Bouncy Castle Licence
[INFO]     * Unicode/ICU License
[INFO]     * BSD licence
[INFO]     * Go License
[INFO]     * Eclipse Public License (EPL)
[INFO]     * BSD License
[INFO]     * Apache License
[INFO]     * GNU Lesser General Public License
[INFO]     * CDDL License
[INFO]     * GNU Lesser General Public Licence
[INFO]   * W3C:
[INFO]     * The W3C Software License
[INFO]   * LGPL-2.1-only:
[INFO]     * GNU Library or Lesser General Public License (LGPL) V2.1
[INFO]     * GNU Lesser General Public License, Version 2.1
[INFO]     * LGPL 2.1 license
[INFO]     * GNU Lesser General Public License Version 2.1
[INFO]     * LGPL v2.1
[INFO]     * LGPL 2.1
[INFO]   * BSD-2-Clause:
[INFO]     * Simplified BSD License
[INFO]   * BSD-3-Clause:
[INFO]     * BSD 3-clause License w/nuclear disclaimer
[INFO]     * The BSD 3-Clause License (BSD3)
[INFO]     * BSD-3-Clause
[INFO]     * BSD 3-clause New License
[INFO]     * New BSD License
[INFO]     * BSD License (3 clause)
[INFO]     * BSD 3-clause license
[INFO]     * New BSD
[INFO]   * CDDL-1.0:
[INFO]     * CDDL 1.0 license
[INFO]     * CDDL, v1.0
[INFO]   * GPL-2.0-only:
[INFO]     * CDDL + GPLv2 with classpath exception
[INFO]     * GNU General Public License Version 2
[INFO]   * GPL-3.0-only:
[INFO]     * CC BY 3.0
[INFO]     * Gnu General Public License, Version 3
[INFO]   * GPL-1.0-only:
[INFO]     * EDL 1.0
[INFO]   * EPL-1.0:
[INFO]     * Eclipse Public License v1.0
[INFO]     * Eclipse Distribution License v. 1.0
[INFO]     * Eclipse Public License - Version 1.0
[INFO]     * Eclipse Distribution License - v 1.0
[INFO]     * EPL 1.0 license
[INFO]     * Eclipse Public License, Version 1.0
[INFO]     * Eclipse Public License - v 1.0
[INFO]   * LGPL-3.0-only:
[INFO]     * LGPL 3.0 license
[INFO]   * WTFPL:
[INFO]     * WTFPL
[INFO]   * LGPL-2.1-or-later:
[INFO]     * GNU Library General Public License v2.1 or later
[INFO]     * LGPL, v2.1 or later
[INFO]   * MPL-1.1:
[INFO]     * MPL 1.1
[INFO]     * Mozilla Public License 1.1 (MPL 1.1)
[INFO]   * Apache-2.0:
[INFO]     * Apache License Version 2.0
[INFO]     * Apache License v2
[INFO]     * Apache-2.0
[INFO]     * Apache 2.0 license
[INFO]     * Apache Software License - Version 2.0
[INFO]     * The Apache Software License, Version 2.0
[INFO]     * Apache License, version 2.0
[INFO]     * The Apache License, Version 2.0
[INFO]     * Apache 2.0
[INFO]     * Apache License 2.0
[INFO]     * Apache License, Version 2.0
[INFO]   * CC0-1.0:
[INFO]     * CC0
[INFO]   * MIT:
[INFO]     * The MIT License
[INFO]     * The MIT License (MIT)
[INFO]     * MIT
[INFO]     * MIT License
[INFO]   * GPL-2.0-with-classpath-exception:
[INFO]     * GPL2 w/ CPE
[INFO]   * EPL-2.0:
[INFO]     * EPL 2.0
[INFO]     * Eclipse Public License - v 2.0
[INFO]     * Eclipse Public License 2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions