首页 > 解决方案 > 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

我究竟做错了什么?

标签: gitattributesgithub-linguist

解决方案


推荐阅读