aboutcode-org / aboutcode-org/scancode.io

Improving D2D mapping for npm - .map files

Offen
#1,859 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
215
Forks
203
Ø Merge
4 T. 8 Std.
Gemergte PRs (30 T.)
6

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.