mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Added generated rule for SpecFlow's *.feature.cs
More info about specFlow here http://www.specflow.org/
This commit is contained in:
@@ -53,6 +53,7 @@ module Linguist
|
|||||||
def generated?
|
def generated?
|
||||||
xcode_file? ||
|
xcode_file? ||
|
||||||
generated_net_designer_file? ||
|
generated_net_designer_file? ||
|
||||||
|
generated_net_specflow_feature_file? ||
|
||||||
composer_lock? ||
|
composer_lock? ||
|
||||||
node_modules? ||
|
node_modules? ||
|
||||||
godeps? ||
|
godeps? ||
|
||||||
@@ -162,6 +163,17 @@ module Linguist
|
|||||||
name.downcase =~ /\.designer\.cs$/
|
name.downcase =~ /\.designer\.cs$/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Internal: Is this a codegen file for Specflow feature file?
|
||||||
|
#
|
||||||
|
# Visual Studio's SpecFlow extension generates *.feature.cs files
|
||||||
|
# from *.feature files, they are not meant to be consumed by humans.
|
||||||
|
# Let's hide them.
|
||||||
|
#
|
||||||
|
# Returns true or false
|
||||||
|
def generated_net_specflow_feature_file?
|
||||||
|
name.downcase =~ /\.feature\.cs$/
|
||||||
|
end
|
||||||
|
|
||||||
# Internal: Is the blob of JS a parser generated by PEG.js?
|
# Internal: Is the blob of JS a parser generated by PEG.js?
|
||||||
#
|
#
|
||||||
# PEG.js-generated parsers are not meant to be consumed by humans.
|
# PEG.js-generated parsers are not meant to be consumed by humans.
|
||||||
|
|||||||
Reference in New Issue
Block a user