aboutcode-org / aboutcode-org/purldb

Store if individual source code files have been generated

未關閉
#162 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
HTML
星號
67
分支
69
平均合併
8 天 8 小時
30 天內合併 PR
1

描述

For files inside source code packages it would be interesting to store if they have been generated from another source code file or not and, if possible, a reference to the origin of that file. An example would be source code files that are generated from a protobuf specification. An example Python file that I have here has the following header:

```
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: update_metadata.proto
```

In scancode there already is some code that processes some of these files and tags them:

https://github.com/nexB/scancode-toolkit/blob/develop/src/summarycode/generated.py

but it does not store a reference to the original source or how it was generated (in this case, with `protoc`). I think this would be useful information to have.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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