Added generated rule for SpecFlow's *.feature.cs

More info about specFlow here http://www.specflow.org/
This commit is contained in:
Maximo Dominguez
2015-01-18 19:31:47 -04:00
parent 6305ec3f31
commit 56c3b8c3fe

View File

@@ -53,6 +53,7 @@ module Linguist
def generated?
xcode_file? ||
generated_net_designer_file? ||
generated_net_specflow_feature_file? ||
composer_lock? ||
node_modules? ||
godeps? ||
@@ -162,6 +163,17 @@ module Linguist
name.downcase =~ /\.designer\.cs$/
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?
#
# PEG.js-generated parsers are not meant to be consumed by humans.