aboutcode-org / aboutcode-org/scancode-toolkit

Add requirement for test files for each license rule

Ouverte
#4,953 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
new feature
Langage dominant
Python
Étoiles
2.6k
Forks
791
Merge moyen
1 j 12 h
PR mergées (30 j)
5

Description

## 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**

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.