mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Classify javadoc/ directories as documentation
This commit is contained in:
		| @@ -7,12 +7,15 @@ | |||||||
| # Please add additional test coverage to | # Please add additional test coverage to | ||||||
| # `test/test_blob.rb#test_documentation` if you make any changes. | # `test/test_blob.rb#test_documentation` if you make any changes. | ||||||
|  |  | ||||||
| ## Documentation Conventions ## | ## Documentation directories ## | ||||||
|  |  | ||||||
| - ^docs?/ | - ^docs?/ | ||||||
| - ^[Dd]ocumentation/ | - ^[Dd]ocumentation/ | ||||||
|  | - (^|/)javadoc/ | ||||||
| - ^man/ | - ^man/ | ||||||
|  |  | ||||||
|  | ## Documentation files ## | ||||||
|  |  | ||||||
| - (^|/)CONTRIBUTING(\.|$) | - (^|/)CONTRIBUTING(\.|$) | ||||||
| - (^|/)COPYING(\.|$) | - (^|/)COPYING(\.|$) | ||||||
| - (^|/)INSTALL(\.|$) | - (^|/)INSTALL(\.|$) | ||||||
|   | |||||||
| @@ -452,6 +452,9 @@ class TestBlob < Minitest::Test | |||||||
|     refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation? |     refute_predicate fixture_blob("project/Documentation/foo.md"), :documentation? | ||||||
|     refute_predicate fixture_blob("project/documentation/foo.md"), :documentation? |     refute_predicate fixture_blob("project/documentation/foo.md"), :documentation? | ||||||
|  |  | ||||||
|  |     assert_predicate fixture_blob("javadoc/foo.html"), :documentation? | ||||||
|  |     assert_predicate fixture_blob("project/javadoc/foo.html"), :documentation? | ||||||
|  |  | ||||||
|     assert_predicate fixture_blob("man/foo.html"), :documentation? |     assert_predicate fixture_blob("man/foo.html"), :documentation? | ||||||
|     refute_predicate fixture_blob("project/man/foo.html"), :documentation? |     refute_predicate fixture_blob("project/man/foo.html"), :documentation? | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user