问题标签 [github-linguist]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
github - Github - 存储 Html/CSS 文件而不更改语言统计信息
我在Github上托管的Crystal中制作了一个小型刮板。我想存储网站HTML用于测试目的,但是当我做我的 Github 项目时,我的 Github 项目显示为用 Html 编写(因为HTML的数量与 Crystal 线条的数量相比)。
如何“忽略”这些 Html 文件?
github - Github shows 4% of repository is in a language that is not used in repository
I have a personal repository on GitHub that is completely written in C#, with a few XML configuration files, and some PowerShell files from included NuGet packages. On the main repository page, GitHub shows a colored bar to display the breakdown of different languages used in the repository.
If you click this bar, it shows the language names and actual percents.
This particular language breakdown seems a bit odd to me, since I am the only contributor, and I have never used Smalltalk.
If you click a language name, it will show you a list of the files using that language.
In this last image, you can see on the left side that the repository really only contains C#, XML, PowerShell, text and markdown files.
So why does GitHub think I'm using Smalltalk? And why doesn't the color bar mention that I'm using XML?
github - 有什么方法可以在 Github 中禁用错误突出显示?
Github 将此行中的第二个突出显示%
为错误:
但是,代码编译完美,删除“错误”将导致程序无法正常运行。
有什么方法可以禁用此错误突出显示或让 Github 将其识别为正确?
github - Github 语言统计中未排除的路径
我已经在这里和这里阅读了相关的 SO 线程,以及 Github Linguist手动覆盖,但我似乎无法从语言统计中排除一些顶级目录。
在其当前的最新版本中,这个 repo显示了 HTML 代码的优势。单击 HTML 详细信息,将列出两个 HTML 文件:
packages/NUnit.2.5.7.10213/NUnitFitTests.html
最后索引于 2016 年 12 月 30 日。packages/NUnit.2.5.7.10213/Tools/NUnitFitTests.html
最后索引于 2016 年 12 月 30 日。
但那些应该是排除路径的一部分.gitattributes
:
但在同一个详情页面中,左下角的排名清楚地显示 HTML 位于较低的位置,而 C# 位于顶部:
我究竟做错了什么?
附带问题:在许多更改中,我还从 .gitattribute 文件中删除了注释,因为我无法从任何参考中找到这些是否允许或什么。有谁知道你可以在那里发表评论吗?哪种格式?助教
github - 为什么 GitHub 决定我的(100% C)存储库是 50% C++?
我有一个仅限 C的 GitHub存储库。在我最近一次提交之后,我修改了头文件中的预处理器间距,GitHub 决定我的存储库是 50.2% C++。我单击链接查看C++ 代码,它显示了我的头文件portable.h
。
为什么 GitHub 认为我的 repo 是 50% C++?更重要的是,我怎样才能改变主意?
repository - 使用 GitLab API 获取存储库语言
我想知道是否有办法通过使用 GitLab 提供的 API 来获取项目中使用的语言(每种语言的百分比)。我检查了他们的文档,但我没有看到任何相关内容,或者我错过了它。
我知道他们使用 Linguist库,但我正在开发一个不在 Ruby 中的应用程序,我正在寻找一种方法来整合这些百分比。
r - 如何让 github 语言学家将 *.Rnw 文件考虑到存储库语言统计信息?
我有很多包含用 LaTeX 和 R 用 knitr 编写的文件的存储库,所以文件名的扩展名是“Rnw”。github linguist 不考虑具有这些扩展名的文件。我们怎样才能解决这个问题?
纠缠所有文件以将 R 代码块提取到单独的文件中并提交和推送它们不是这种情况,不是吗?
我已经通过语言学家指南进行了研究,但没有找到这种情况。
我希望它们被视为 TeX 和 R 的混合物,如果语言学家可以解析文件,计算 knitr 块中 R 代码的字节数和 TeX 的字节数。
javascript - 提交到 GitHub 时,应该将 jQuery 等 3rd 方库存储在哪里,以免影响语言统计信息?
我想在我的项目中的某个地方包含实际的 jQuery 代码,但我希望 GitHub 忽略第 3 方文件的内容。
haskell - skylighting,pygments和Linguist之间有什么区别?
除了用 haskell、python 和 ruby 编写之外, 和 之间的主要区别skylighting
是pygments
什么Linguist
?
它们在语言支持方面是否有很大差异?它们有不同的内部结构吗?它们在多大程度上可以互换使用?是否有任何自动工具来比较其应用程序的效果(可能在babelmark的脉络中用于降价)?
是否有使用这些不同工具的所有工具/组织的列表?Pygments 有一个“谁使用 pygments”的列表,很明显 pandoc 使用 skylighting,GitHub 使用 Linguist,但是还有其他使用这些的主要工具吗?