mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Nix this generated check for now
This commit is contained in:
		| @@ -56,8 +56,7 @@ module Linguist | ||||
|         compiled_coffeescript? || | ||||
|         xcode_project_file? || | ||||
|         generated_net_docfile? || | ||||
|         generated_parser? || | ||||
|         compiled_cython_file? | ||||
|         generated_parser? | ||||
|     end | ||||
|  | ||||
|     # Internal: Is the blob an XCode project file? | ||||
| @@ -159,17 +158,5 @@ module Linguist | ||||
|  | ||||
|       false | ||||
|     end | ||||
|  | ||||
|     # Internal: Is this a compiled C/C++ file from Cython? | ||||
|     # | ||||
|     # Cython-compiled C/C++ files typically contain: | ||||
|     #     /* Generated by Cython x.x.x on ... */ | ||||
|     # on the first line. | ||||
|     # | ||||
|     # Return true or false | ||||
|     def compiled_cython_file? | ||||
|       return false unless ['.c', '.cpp'].include? extname | ||||
|       return lines[0].include?("Generated by Cython") | ||||
|     end | ||||
|   end | ||||
| end | ||||
|   | ||||
| @@ -189,10 +189,6 @@ class TestBlob < Test::Unit::TestCase | ||||
|  | ||||
|     assert blob("JavaScript/intro.js").generated? | ||||
|     assert blob("JavaScript/classes.js").generated? | ||||
|  | ||||
|     # Cython-generated C/C++ | ||||
|     assert blob("C/sgd_fast.c").generated? | ||||
|     assert blob("C++/wrapper_inner.cpp").generated? | ||||
|   end | ||||
|  | ||||
|   def test_vendored | ||||
|   | ||||
		Reference in New Issue
	
	Block a user