aboutcode-org / aboutcode-org/scancode-toolkit

Support directories in `referenced_filenames` for rules

未關閉
#4,276 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
good first issue improve-license-detection
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。