Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/linguist/generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def generated?
npm_shrinkwrap_or_package_lock? ||
pnpm_lock? ||
terraform_lock? ||
insta_snap? ||
generated_yarn_plugnplay? ||
godeps? ||
generated_by_zephir? ||
Expand Down Expand Up @@ -562,6 +563,17 @@ def terraform_lock?
!!name.match(/(?:^|\/)\.terraform\.lock\.hcl$/)
end

# Internal: Is this a Rust test snapshot file by Insta?
#
# By default these files are stored in `.../snapshots/*.snap`,
# but user may modify the location.
# See <https://insta.rs/docs/snapshot-files/>
#
# Returns true or false.
def insta_snap?
!!name.match(/(?:^|\/)\.snap$/)
end

# Internal: Is it a KiCAD or GFortran module file?
#
# KiCAD module files contain:
Expand Down
Loading