aboutcode-org / aboutcode-org/scancode-toolkit

Add requirement for test files for each license rule

オープン
#4,953 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
new feature
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。