Adam Roben
80f72a5093
Classify the .google_apis/ directory as vendored
...
This is used in Android projects that use certain Google SDKs to store
the SDKs locally.
2015-02-20 10:36:47 -05:00
Adam Roben
9e020dd15d
Classify "documentation/" directories (lowercase) as documentation
...
This is used in repositories like jashkenas/coffeescript.
2015-02-20 10:24:59 -05:00
Adam Roben
c7c0c30ecf
Classify javadoc/ directories as documentation
2015-02-20 10:24:38 -05:00
Adam Roben
60deead669
Add a couple more documentation patterns
...
These are used in repositories like jashkenas/coffeescript and
tj/git-extras.
2015-02-20 09:53:07 -05:00
Arfon Smith
7fd720bf39
Merge branch 'master' into ascii
2015-02-16 11:18:31 -08:00
Adam Roben
2f5b49f4ae
Merge pull request #2097 from github/detect-all-markup
...
Detect all markup languages when computing language statistics
2015-02-13 16:43:41 -05:00
Adam Roben
1bf91d4281
Use .html files in some #documentation? tests
...
This is what we were trying to classify in the twbs/bootstrap
repository, for example.
2015-02-13 14:31:40 -05:00
Adam Roben
8d2dd55c94
Categorize INSTALL files as documentation too
2015-02-13 14:30:44 -05:00
Adam Roben
6a86e8ea97
Add BlobHelper#include_in_language_stats?
...
This just extracts some logic from Repository#compute_stats and makes it
testable.
2015-02-13 14:27:20 -05:00
Adam Roben
066052ddd2
Exclude documentation files from language statistics
...
Documentation is an important part of a software project but is not
generally thought of as part of the code for that project. Repository
language statistics are used to quantify the project's code, so it makes
sense to exclude documentation from those computations.
Documentation files are recognized similarly to vendored files.
lib/linguist/documentation.yml contains regular expressions to match
common names for documentation files. A new linguist-documentation Git
attribute can be used to override those conventions.
2015-02-12 10:20:47 -05:00
Arfon Smith
fffd1b986d
Merge pull request #2085 from github/shebang-first
...
Shebang first
2015-02-11 16:00:25 -06:00
Paul Chaignon
665f9ee5b5
Merge branch 'master' into new-grammars
2015-02-09 23:19:37 +01:00
Paul Chaignon
4eb8903bed
Comment for GAP grammar in whitelist
2015-02-09 23:01:24 +01:00
Paul Chaignon
d11b2f05bb
Detection of zlib license
2015-02-09 22:57:19 +01:00
Paul Chaignon
11f7e6e1b4
Add Papyrus and GAP grammars to whitelist
2015-02-09 21:29:53 +01:00
Brandon Keepers
bdc724d548
Detect "use 5.xxx" as Perl
2015-02-09 10:19:36 -05:00
Arfon Smith
88e79cd3a8
Adding fixtures to test shebang strategy ordering
2015-02-07 10:24:03 -06:00
Arfon Smith
0db1d1c8ca
Modifying some modeline fixtures to test case InSeNsItivitY
2015-02-06 08:48:59 -06:00
Lars Brinkhoff
2077fa3837
'Text' doesn't qualify as a valid modeline language.
2015-02-04 08:20:19 +01:00
Edmundo Ruiz
9fa7adaa61
#1638 New heuristics to distinguish between AsciiDoc, AGS Script, and Public Key.
2015-02-03 00:43:53 -08:00
Arfon Smith
69b68f3a44
Extracting common methods into helper.
2015-01-26 16:22:55 -06:00
Arfon Smith
119a8fff1e
Emacs modeline fixtures
2015-01-26 15:38:19 -06:00
Arfon Smith
8094b1bd92
Test strategy and language
2015-01-26 15:38:07 -06:00
Arfon Smith
429c791377
Testing Vim modeline support
2015-01-26 14:39:07 -06:00
Arfon Smith
8aa4dce6f4
Merge pull request #1723 from techhat/pythonmultiline
...
Python also supports triple single-quotes for comments
2015-01-24 10:54:30 -06:00
Paul Chaignon
bf5651e127
Merge branch 'master' into newlisp
2015-01-24 00:15:52 +01:00
Arfon Smith
36120a9122
Revert "Use path for Generated?"
2015-01-20 08:58:11 -06:00
Arfon Smith
43b297636d
Merge pull request #2003 from pchaigno/cs-heuristics
...
Heuristics for .cs files: C# and Smalltalk
2015-01-17 09:10:58 -06:00
Adam Roben
9ec801d495
Merge pull request #1976 from github/path-for-fileblob
...
Use path for Generated?
2015-01-15 21:20:00 -05:00
Adam Roben
96c7bc30d8
Simplify blob tests
...
Now that FileBlobs with relative paths can still access their files on
disk, we can use relative paths for all FileBlobs in the test. This more
closely matches the behavior in github.com's codebase, where all blobs
use relative paths.
2015-01-14 08:57:53 -05:00
Brandon Keepers
1bc6a6dfe5
Merge pull request #1955 from pchaigno/zephir-generated-samples
...
Reclassify three samples files generated from Zephir code
2015-01-10 10:43:00 -08:00
Arfon Smith
f4c1cc576b
Modifying BlobHelper and FileBlob to use path
2015-01-09 15:15:34 -06:00
Arfon Smith
24eb1d3fe2
Updating file regex to support unlicense.txt
2015-01-09 11:43:34 -06:00
Adam Roben
e95314f072
Recognize WTFPL-licensed grammars
2015-01-08 10:49:54 -05:00
Florian M. Schäfer
3ace4c57f7
Allow British-English LICENCE-files
2015-01-06 22:51:08 +01:00
Adam Roben
71f0cafc78
Update all submodules
...
This was done via `git submodule update --remote`.
Since Scalate.tmbundle now has a license we can remove it from the
whitelist.
* vendor/grammars/NimLime 9cef4b6...a7067c6 (1):
> Added 'nim' to tmpl sublimetext highlighting
* vendor/grammars/Scalate.tmbundle 4f85314...0307535 (1):
> Merge pull request #3 from aroben/patch-1
* vendor/grammars/fsharpbinding d097476...99d2e9a (2):
> Merge pull request #917 from 7sharp9/CleanMacProjects
> Merge pull request #916 from 7sharp9/ToolTipsLessBlocky
* vendor/grammars/language-clojure d649d9f...bae6eee (2):
> Prepare 0.10.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-coffee-script c6e8d33...d86c896 (2):
> Prepare 0.39.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-gfm 7b62290...6af44a0 (2):
> Remove unneeded newline
> Merge pull request #65 from braver/line-break
* vendor/grammars/language-javascript 6690feb...5157519 (2):
> Prepare 0.53.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-python f518e49...46072e3 (2):
> Prepare 0.29.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-shellscript cbec163...9839719 (2):
> Prepare 0.12.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-yaml eddd079...ce8b441 (2):
> Prepare 0.22.0 release
> Rename scoped-properties/ to settings/
2015-01-06 13:46:04 -05:00
Adam Roben
4614287a55
Test that all grammar submodules have an appropriate license
...
We require all grammars to have a license that permits redistribution. A
few existing grammars have been grandfathered in without a license (and
we're working to remedy that), but no new grammars should be added
without a license.
2015-01-06 13:44:11 -05:00
Adam Roben
f477f811df
Extract TestGrammars#submodule_paths method
2015-01-06 13:43:50 -05:00
Adam Roben
a4286ba950
Show stderr output when running convert-grammars
...
This will let us see why it's failing.
2015-01-06 13:28:26 -05:00
Adam Roben
5fa85f268f
Ruby 1.9 compatibility
2015-01-06 13:28:26 -05:00
Adam Roben
ada6f6882a
Test that grammars.yml lists the right scopes for each submodule
...
convert-grammars now supports a few flags that we can use to make it
dump out the YAML just for the local grammar submodules. We can then
compare this to the YAML that's actually in grammars.yml to check that
they're the same. If they aren't, grammars.yml needs to be updated.
This will help catch mistakes like using the wrong scope name.
2015-01-06 13:28:25 -05:00
Paul Chaignon
96e6b3f53e
Reclassify samples generated from Zephir code
2015-01-06 17:00:16 +01:00
Paul Chaignon
3c6218f20e
Heuristics for .cs files: Smalltalk and C#
2015-01-04 22:07:29 +01:00
Adam Roben
1f1ffcbfa6
Merge pull request #1930 from github/minitest
...
Switch to Minitest::Test instead of Test::Unit::TestCase
2015-01-02 16:27:43 -05:00
Adam Roben
065dd713c1
Assert that generated files are detected correctly
2015-01-02 16:15:55 -05:00
Brandon Keepers
2be3220824
Merge pull request #1940 from github/fix-multiple-extensions
...
Fix for extensions with multiple segments
2015-01-02 10:59:30 -05:00
Lars Brinkhoff
6ae39e50ae
Fix #1731 to allow samples with multiple file extension segments.
2015-01-02 10:41:22 -05:00
Adam Roben
65296e86a3
Switch to Minitest::Test instead of Test::Unit::TestCase
...
This gives us a consistent test framework across all Ruby versions which
should help avoid errors that are only found when CI runs the tests on
different Rubies. (And this fixes an immediate bug where there's no
`skip` method in the version of test-unit we're currently using only on
Ruby 2.2.)
2014-12-31 15:26:26 -05:00
Adam Roben
c9b7bb73b9
Use test/helper.rb in test_file_blob.rb
2014-12-31 15:19:56 -05:00
Adam Roben
795f42cbaa
Merge pull request #1832 from pchaigno/optimize-generated
...
Optimization of generated?
2014-12-31 15:19:43 -05:00