gitattributes - github-linguist 无法识别来自 .gitattributes 的供应商文件
问题描述
Github 的语言学家在我的 repos 中检测到许多出售的文件,尤其是 JavaScript。我发现a.gitattributes
可用于配置 linguist 以忽略多个文件以进行统计计数。
但这不起作用,无论如何我都会尝试。似乎我的.gitattributes
. 到目前为止,我已经尝试了以下方法:
deploy/static/js/pdfjs/* linguist-vendored
deploy/static/py/Brython-3.7.1/* linguist-vendored
deploy/static/js/pdfjs/build/pdf.js linguist-vendored
deploy/static/js/pdfjs/web/debugger.js linguist-vendored
deploy/static/js/pdfjs/web/viewer.js linguist-vendored
deploy/static/py/Brython-3.7.1/brython.js linguist-vendored
/deploy/static/js/pdfjs/* linguist-vendored
/deploy/static/py/Brython-3.7.1/* linguist-vendored
**/pdfjs/* linguist-vendored
**/Brython-3.7.1/* linguist-vendored
我跑步时的结果github-linguist --breakdown
总是
JavaScript:
deploy/static/js/app.js
deploy/static/js/pagination.js
deploy/static/js/pdfjs/build/pdf.js
deploy/static/js/pdfjs/web/debugger.js
deploy/static/js/pdfjs/web/viewer.js
deploy/static/py/Brython-3.7.1/brython.js
sources/gulpfile.js
我究竟做错了什么?
解决方案
推荐阅读
- python-3.x - Django REST Framework API:如何在 Django 服务器上使用用户(例如 username.jpg)给出的名称保存/上传图像
- vba - TheFatRat Microsoft 反向 shell 文档中的 Base64 代码在哪里?
- tensorflow - 如何在 tensorflow2 中制作这样的数据集:
- generics - 生命周期泛型函数:为什么 Rust 不选择更小的内部生命周期?
- google-play - Google Play Developer Console 2021 中的累计总下载量
- devops - 不得使用 sudo 运行
- salesforce - APEX 最佳实践
- javascript - 带有承诺的文档点击功能的Javascript错误
- pdf - 从 ppt 导出为 pdf 时大小增加的查询
- python - dialogflow :: 同时检测意图和切换上下文