aboutcode-org / aboutcode-org/scancode-toolkit

Include better debug diagnostics

未關閉
#4,952 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
new feature
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

## Short Description

I am trying to find out why certain rules are not applying correctly. The current license diagnostics are not sufficient for that. Although `--license-text-diagnostics` includes some information I would want to see more of the internal stuff, such as the internal representation of the rule that was matched (the cleaned up version).

## Possible Labels

- new feature

## Select Category

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

## **Describe the Update**

See short description.

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

I am seeing many matches that are incorrect, or slightly incorrect, even though it seems that the correct rules are present in scancode. I want to find out why these don't match, so existing rules can be tightened, or new rules can be added.

## **Possible Solution/Implementation Details**

I would like to see a feature where I can dump the internal representation of the license text that was matched. I am thinking of a representation of the license text, that has been cleaned up (whitespace, punctuation, and so on), so I can see what was matched against.

## **Example/Links if Any**

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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