aboutcode-org / aboutcode-org/scancode-toolkit

Add requirement for test files for each license rule

未关闭
#4,953 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
new feature
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

## Short Description

There should be a requirement that there should be a test file for each license rule that is added to the licensedb.

## Possible Labels

- new feature

## Select Category

- [x] Enhancement
- [ ] Add License/Copyright
- [ ] Scan Feature
- [ ] Packaging
- [ ] Documentation
- [ ] Expand Support
- [X] Other

## **Describe the Update**

There are currently some tests for existing rules, but not every rule has a test file:

```
$ find src/licensedcode/data/rules/ | wc -l
36483
```

```
$ find tests/licensedcode/data/datadriven/ -type f| grep yml | wc -l
4368
```

## **How This Feature will help you/your organization**

It will help catch regressions whenever new rules are added.

## **Possible Solution/Implementation Details**

Every addition to the licensedb should get a corresponding test file.

## **Example/Links if Any**

## **Can you help with this Feature**

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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