Skip to content

Commit

Permalink
Detect .xcworkspacedata and .xcuserstate files as generated
Browse files Browse the repository at this point in the history
Xcode 4 generates more XML files than ever: update `generated?` to recognize
them as such.
  • Loading branch information
jonsterling committed Jul 13, 2011
1 parent 08a05cc commit de96f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linguist/blob_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def average_line_length
#
# Return true or false
def generated?
if ['.xib', '.nib', '.pbxproj'].include?(extname)
if ['.xib', '.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname)
true
elsif generated_coffeescript? || minified_javascript?
true
Expand Down

0 comments on commit de96f95

Please sign in to comment.