Skip to content

scancode detects "Simplified BSD License" as "BSD-3-Clause AND BSD-2-Clause" in version 32.5.0 vs BSD-2-Clause in version 32.3.3 #5299

Description

@SheriffManzoorF

Description

scancode-toolkit version 32.5.0 detects the same "Simplified BSD License" header comment as BSD-3-Clause AND BSD-2-Clause (bsd-simplified AND bsd-new), whereas version 32.3.3 correctly detects it as just BSD-2-Clause (bsd-simplified).
The statement causing this detection is:

// Distributed under the Simplified BSD License.
// See README.md for details.

Source processed: https://github.com/russross/blackfriday/tree/master

Affected files

10 files under russross/:

README.md
block.go
block_test.go
html.go
inline.go
inline_test.go
latex.go
markdown.go
markdown_test.go
ref_test.go

How To Reproduce

Clone https://github.com/russross/blackfriday (master branch)
Run scancode against the checkout with both v32.3.3 and v32.5.0, e.g.:
scancode --license --json-pp result.json .
Compare the license_expression for the files listed above:
v32.3.3 → bsd-simplified (BSD-2-Clause)
v32.5.0 → bsd-simplified AND bsd-new (BSD-3-Clause AND BSD-2-Clause)

System configuration

For bug reports, it really helps us to know:

  • OS: N/A (issue reproducible regardless of OS)
  • scancode-toolkit versions compared: 32.3.3 vs 32.5.0
  • Installation method: N/A

32.3.3.json
32.5.0.json

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugnew-licenseA new scancode license can be added for this

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions