aboutcode-org / aboutcode-org/scancode.io

Improving D2D mapping for npm - Basename matching

未关闭
#1,862 1 条评论 0 个 reaction 已指派 1 人 已被 @Aryan-SINGH-GIT 认领 在 GitHub 查看
主要语言
Python
星标
215
派生
203
平均合并
4 天 8 小时
30 天内合并 PR
6

描述

In some cases, file extensions may differ between the deployment codebase and the development codebase due to transformations during the build process. The tool should account for these discrepancies and perform mapping based on file basenames where appropriate.
Below is the proposed list of basename matches to support this logic:

| deployed extension | can be from extension | notes |
| ---------------------- | ------------------| ------|
| .cjs | .ts, .mts or .js||
|.mjs | .ts, .mts or .js||
|.css | .less or .scss||
|.d.ts | .ts or .js||
|.js |.ts ||
|.min.js |.js||
|.js| .ts, .tsx, .coffee, .jsx, .vue. .svelte, .elm||
|.bak||It is a backup typed file|
|"extension1"."extension2"|"extension1"| nrlmsise_interface.cpp.o <- nrlmsise_interface.cpp
headers.h.gch <- headers.h|
|.d.mts| .mts, .ts ||
|"filename"|"filename"| In certain cases, files may share the same filename but differ in their hash values due to changes during the build process. To determine a valid match, the tool should consider both the filename and the corresponding path.|

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。