mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Style
This commit is contained in:
@@ -194,13 +194,8 @@ module Linguist
|
|||||||
# file extension.
|
# file extension.
|
||||||
#
|
#
|
||||||
# Returns true of false.
|
# Returns true of false.
|
||||||
|
|
||||||
def xcode_project_file?
|
def xcode_project_file?
|
||||||
if ['.xib', '.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname)
|
['.xib', '.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname)
|
||||||
true
|
|
||||||
else
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Internal: Is the blob a Visual Studio project file?
|
# Internal: Is the blob a Visual Studio project file?
|
||||||
@@ -209,13 +204,8 @@ module Linguist
|
|||||||
# file extension.
|
# file extension.
|
||||||
#
|
#
|
||||||
# Returns true of false.
|
# Returns true of false.
|
||||||
|
|
||||||
def visual_studio_project_file?
|
def visual_studio_project_file?
|
||||||
if ['.csproj', '.dbproj', '.fsproj', '.pyproj', '.rbproj', '.vbproj', '.vcxproj', '.wixproj', '.resx', '.sln', '.vdproj', '.isproj'].include?(extname)
|
['.csproj', '.dbproj', '.fsproj', '.pyproj', '.rbproj', '.vbproj', '.vcxproj', '.wixproj', '.resx', '.sln', '.vdproj', '.isproj'].include?(extname)
|
||||||
true
|
|
||||||
else
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Internal: Is the blob minified JS?
|
# Internal: Is the blob minified JS?
|
||||||
|
|||||||
Reference in New Issue
Block a user