Skip to content

Commit

Permalink
adding default ignore patterns for more languages: C / C++ / Java / S…
Browse files Browse the repository at this point in the history
…wift / Ruby / Rust / Go / C#
  • Loading branch information
rafeyrana committed Dec 29, 2024
1 parent 75ee8f7 commit b9c9235
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/gitingest/ignore_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,66 @@
'.npm',
'.yarn',
'.pnpm-store',
# Java
'*.class',
'*.jar',
'*.war',
'*.ear',
'*.nar',
'target/',
'.gradle/',
'build/',
'.settings/',
'.project',
'.classpath',
'gradle-app.setting',
'*.gradle',
# C/C++
'*.o',
'*.obj',
'*.so',
'*.dll',
'*.dylib',
'*.exe',
'*.lib',
'*.out',
'*.a',
'*.pdb',
# Swift/Xcode
'.build/',
'*.xcodeproj/',
'*.xcworkspace/',
'*.pbxuser',
'*.mode1v3',
'*.mode2v3',
'*.perspectivev3',
'*.xcuserstate',
'xcuserdata/',
'.swiftpm/',
# Ruby
'*.gem',
'.bundle/',
'vendor/bundle',
'Gemfile.lock',
'.ruby-version',
'.ruby-gemset',
'.rvmrc',
# Rust
'target/',
'Cargo.lock',
'**/*.rs.bk',
# Go
'bin/',
'pkg/',
# .NET/C#
'bin/',
'obj/',
'*.suo',
'*.user',
'*.userosscache',
'*.sln.docstates',
'packages/',
'*.nupkg',
# Version control
'.git',
'.svn',
Expand Down
1 change: 1 addition & 0 deletions src/gitingest/parse_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from gitingest.ignore_patterns import DEFAULT_IGNORE_PATTERNS


TMP_BASE_PATH = "../tmp"
HEX_DIGITS = set(string.hexdigits)

Expand Down

0 comments on commit b9c9235

Please sign in to comment.