aboutcode-org / aboutcode-org/scancode.io

Improving D2D mapping for npm - .map files

未關閉
#1,859 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
215
分支
203
平均合併
4 天 8 小時
30 天內合併 PR
6

描述

A .map file is typically a source map used in deployment environments to link compiled code back to its original source files.

It would be highly beneficial if the tool could analyze .map files and automatically resolve the paths listed in the "sources" section to verify their presence in the development codebase.

For example:
carbon-addons-iot-react.css.map
```
"sources": [
"styles.scss"
]
```
Here, `styles.scss` should be flagged as mapped if found in the development codebase.

bundle.js.map
```
"sources": [
"../src/queue.ts",
"../node_modules/tslib/tslib.es6.js",
"../src/error.ts",
"../src/browser.ts",
"../src/simple.ts",
"../src/index.ts"
]
```

Each of these paths should be individually checked. If all are found, the .map file is considered fully mapped.
However, if any source file listed cannot be mapped, the .map file should be flagged as `requires-review` , indicating that manual review is needed to ensure source integrity.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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