aboutcode-org / aboutcode-org/scancode-toolkit

Support directories in `referenced_filenames` for rules

Aperta
#4,276 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
good first issue improve-license-detection
Lingua principale
Python
Stelle
2.6k
Fork
791
Merge medio
1g 12h
PR unite (30g)
5

Descrizione

Sometimes references to license files are in terms of specific directories instead of one/multiple filename/paths.

See for example: https://github.com/avnet-iotconnect/iotc-azurertos-sdk/blob/0e6fe7c9ede4f97a81203eafc930577906736455/README.md?plain=1#L157

A simple way to support this would be to have simple glob patterns like:
```
referenced_filenames:
- azrtos-licenses/*
```
And check if there are glob patterns in the `referenced_filenames` and only then process these, otherwise fallback to the simple filename based processing which should be much faster.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.