Skip to content

Commit 3c5e7e9

Browse files
authored
adding default ignore patterns for more languages: C / C++ / Java / Swift / Ruby / Rust / Go / C# (#63)
1 parent 75ee8f7 commit 3c5e7e9

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

src/gitingest/ignore_patterns.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,66 @@
2323
'.npm',
2424
'.yarn',
2525
'.pnpm-store',
26+
# Java
27+
'*.class',
28+
'*.jar',
29+
'*.war',
30+
'*.ear',
31+
'*.nar',
32+
'target/',
33+
'.gradle/',
34+
'build/',
35+
'.settings/',
36+
'.project',
37+
'.classpath',
38+
'gradle-app.setting',
39+
'*.gradle',
40+
# C/C++
41+
'*.o',
42+
'*.obj',
43+
'*.so',
44+
'*.dll',
45+
'*.dylib',
46+
'*.exe',
47+
'*.lib',
48+
'*.out',
49+
'*.a',
50+
'*.pdb',
51+
# Swift/Xcode
52+
'.build/',
53+
'*.xcodeproj/',
54+
'*.xcworkspace/',
55+
'*.pbxuser',
56+
'*.mode1v3',
57+
'*.mode2v3',
58+
'*.perspectivev3',
59+
'*.xcuserstate',
60+
'xcuserdata/',
61+
'.swiftpm/',
62+
# Ruby
63+
'*.gem',
64+
'.bundle/',
65+
'vendor/bundle',
66+
'Gemfile.lock',
67+
'.ruby-version',
68+
'.ruby-gemset',
69+
'.rvmrc',
70+
# Rust
71+
'target/',
72+
'Cargo.lock',
73+
'**/*.rs.bk',
74+
# Go
75+
'bin/',
76+
'pkg/',
77+
# .NET/C#
78+
'bin/',
79+
'obj/',
80+
'*.suo',
81+
'*.user',
82+
'*.userosscache',
83+
'*.sln.docstates',
84+
'packages/',
85+
'*.nupkg',
2686
# Version control
2787
'.git',
2888
'.svn',

src/gitingest/parse_query.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from gitingest.ignore_patterns import DEFAULT_IGNORE_PATTERNS
88

9+
910
TMP_BASE_PATH = "../tmp"
1011
HEX_DIGITS = set(string.hexdigits)
1112

0 commit comments

Comments
 (0)