aboutcode-org / aboutcode-org/scancode-toolkit

bsd-simplified license text without disclaimer

未关闭
#2,555 4 条评论 0 个 reaction 已指派 2 人 已被 @AyanSinhaMahapatra 认领 在 GitHub 查看
bug license scan revisit
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

We have a bsd text in several debian copyright files tagged `BSD-2-clause` which is just first two clauses of `BSD-3-clause` , so basically with a mention of disclaimer without the disclaimer itself. This isn't getting detected by scancode exactly, so a new rule (or maybe license?) needs to be added but I'm not sure of the license-expression, since it's different from `bsd-new` or `bsd-simplified` or `bsd-no-disclaimer`, more like -> `bsd-simplified-no-disclaimer-text`
```
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
```
Example: https://github.com/nexB/scancode-toolkit/blob/develop/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libblkid1/copyright#L402

Matched License with diagnostics:
```
"licenses": [
{
"key": "bsd-no-disclaimer",
"score": 84.38,
"name": "BSD-2-Clause without Warranty Disclaimer",
"short_name": "BSD-2-Clause no disclaimer",
"category": "Permissive",
"is_exception": false,
"owner": "Unspecified",
"homepage_url": null,
"text_url": "",
"reference_url": "https://scancode-licensedb.aboutcode.org/bsd-no-disclaimer",
"scancode_text_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-no-disclaimer.LICENSE",
"scancode_data_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-no-disclaimer.yml",
"spdx_license_key": "LicenseRef-scancode-bsd-no-disclaimer",
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-no-disclaimer.LICENSE",
"start_line": 1,
"end_line": 8,
"matched_rule": {
"identifier": "bsd-no-disclaimer.LICENSE",
"license_expression": "bsd-no-disclaimer",
"licenses": [
"bsd-no-disclaimer"
],
"is_license_text": true,
"is_license_notice": false,
"is_license_reference": false,
"is_license_tag": false,
"is_license_intro": false,
"matcher": "3-seq",
"rule_length": 64,
"matched_length": 54,
"match_coverage": 84.38,
"rule_relevance": 100
},
"matched_text": "Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the above copyright\n notice, [this] [list] [of] [conditions] [and] [the] [following] [disclaimer].\n 2. Redistributions in binary form must reproduce the above copyright\n notice, [this] [list] [of] [conditions] [and] [the] [following] [disclaimer] in the\n documentation and/or other materials provided with the distribution."
}
],
```
Note that the disclaimer is present elsewhere in the file in the `Bsd-3-Clause` License Paragraph.

Should this just be a Rule or a new License? What should the license-expression be ?
@DennisClark @pombredanne

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。