是否有可能从git语言统计中排除文件? [英] Is it possible to exclude files from git language statistics?

查看:309
本文介绍了是否有可能从git语言统计中排除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

傻的问题,而不是那些是必要的东西,但是有可能排除文件从git语言统计聚合顶部?

我已经检查了一些外部CSS和JavaScript框架,以便可以将它们与其他源代码一起压缩。他们被视为项目的一部分,但他们并没有从团队成员的贡献,所以状态栏并不完全反映真相。 解决方案 div>

从Github帮助页面 我的存储库被标记为错误的语言
$ b


语言学家从统计中排除某些文件名和路径。查看 vendor.yml 文件以获取这些例外。



总是欢迎使用新的排除模式的请求。


因此,如果您的javascsript / css文件与 yaml文件中的正则表达式匹配他们不应该包含在统计数据中。如果他们不这样做,可以添加它们并创建一个拉取请求。


Silly question and not on something that is so necessary, but is it possible to exclude files from git language statistics aggregation on top?

I have checked some external CSS and JavaScript frameworks so that they can be compressed along with the rest of the source code. They get measured as part of the project, but they have not been contributed from a team member so the status bar does not exactly reflect the truth.

解决方案

From the Github Help page My repository is marked as the wrong language:

Linguist excludes certain file names and paths from statistics. Check out the vendor.yml file for a list of these exclusions.

Pull requests with new exclusion patterns are always welcome.

So if your javascsript/css files match a regexp in that Yaml file they shouldn’t be included in the stats. If they don’t, you could add them and create a pull-request.

这篇关于是否有可能从git语言统计中排除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆