|
1 | | -# Created by https://www.toptal.com/developers/gitignore/api/macos,windows,linux,visualstudiocode,jetbrains+all,go |
2 | | -# Edit at https://www.toptal.com/developers/gitignore?templates=macos,windows,linux,visualstudiocode,jetbrains+all,go |
3 | | - |
4 | | -### Go ### |
5 | | -# If you prefer the allow list template instead of the deny list, see community template: |
6 | | -# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore |
| 1 | +# Allowlisting gitignore template for GO projects prevents us |
| 2 | +# from adding various unwanted local files, such as generated |
| 3 | +# files, developer configurations or IDE-specific files etc. |
7 | 4 | # |
8 | | -# Binaries for programs and plugins |
9 | | -*.exe |
10 | | -*.exe~ |
11 | | -*.dll |
12 | | -*.so |
13 | | -*.dylib |
14 | | - |
15 | | -# Test binary, built with `go test -c` |
16 | | -*.test |
17 | | - |
18 | | -# Output of the go coverage tool, specifically when used with LiteIDE |
19 | | -*.out |
20 | | -coverage.html |
21 | | - |
22 | | -# Taskfile |
23 | | -.task |
24 | | - |
25 | | -# rumdl |
26 | | -.rumdl-cache |
27 | | - |
28 | | -# Comparative benchmarks |
29 | | -before.txt |
30 | | -after.txt |
31 | | - |
32 | | -# Dependency directories (remove the comment below to include it) |
33 | | -# vendor/ |
34 | | - |
35 | | -# Go workspace file |
36 | | -go.work |
37 | | - |
38 | | -### JetBrains+all ### |
39 | | -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider |
40 | | -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 |
41 | | - |
42 | | -# User-specific stuff |
43 | | -.idea/**/workspace.xml |
44 | | -.idea/**/tasks.xml |
45 | | -.idea/**/usage.statistics.xml |
46 | | -.idea/**/dictionaries |
47 | | -.idea/**/shelf |
48 | | - |
49 | | -# AWS User-specific |
50 | | -.idea/**/aws.xml |
51 | | - |
52 | | -# Generated files |
53 | | -.idea/**/contentModel.xml |
54 | | - |
55 | | -# Sensitive or high-churn files |
56 | | -.idea/**/dataSources/ |
57 | | -.idea/**/dataSources.ids |
58 | | -.idea/**/dataSources.local.xml |
59 | | -.idea/**/sqlDataSources.xml |
60 | | -.idea/**/dynamic.xml |
61 | | -.idea/**/uiDesigner.xml |
62 | | -.idea/**/dbnavigator.xml |
63 | | - |
64 | | -# Gradle |
65 | | -.idea/**/gradle.xml |
66 | | -.idea/**/libraries |
67 | | - |
68 | | -# Gradle and Maven with auto-import |
69 | | -# When using Gradle or Maven with auto-import, you should exclude module files, |
70 | | -# since they will be recreated, and may cause churn. Uncomment if using |
71 | | -# auto-import. |
72 | | -# .idea/artifacts |
73 | | -# .idea/compiler.xml |
74 | | -# .idea/jarRepositories.xml |
75 | | -# .idea/modules.xml |
76 | | -# .idea/*.iml |
77 | | -# .idea/modules |
78 | | -# *.iml |
79 | | -# *.ipr |
80 | | - |
81 | | -# CMake |
82 | | -cmake-build-*/ |
83 | | - |
84 | | -# Mongo Explorer plugin |
85 | | -.idea/**/mongoSettings.xml |
86 | | - |
87 | | -# File-based project format |
88 | | -*.iws |
89 | | - |
90 | | -# IntelliJ |
91 | | -out/ |
92 | | - |
93 | | -# mpeltonen/sbt-idea plugin |
94 | | -.idea_modules/ |
95 | | - |
96 | | -# JIRA plugin |
97 | | -atlassian-ide-plugin.xml |
98 | | - |
99 | | -# Cursive Clojure plugin |
100 | | -.idea/replstate.xml |
101 | | - |
102 | | -# SonarLint plugin |
103 | | -.idea/sonarlint/ |
104 | | - |
105 | | -# Crashlytics plugin (for Android Studio and IntelliJ) |
106 | | -com_crashlytics_export_strings.xml |
107 | | -crashlytics.properties |
108 | | -crashlytics-build.properties |
109 | | -fabric.properties |
110 | | - |
111 | | -# Editor-based Rest Client |
112 | | -.idea/httpRequests |
113 | | - |
114 | | -# Android studio 3.1+ serialized cache file |
115 | | -.idea/caches/build_file_checksums.ser |
116 | | - |
117 | | -### JetBrains+all Patch ### |
118 | | -# Ignore everything but code style settings and run configurations |
119 | | -# that are supposed to be shared within teams. |
120 | | - |
121 | | -.idea/* |
122 | | - |
123 | | -!.idea/codeStyles |
124 | | -!.idea/runConfigurations |
125 | | - |
126 | | -### Linux ### |
127 | | -*~ |
128 | | - |
129 | | -# temporary files which can be created if a process still has a handle open of a deleted file |
130 | | -.fuse_hidden* |
131 | | - |
132 | | -# KDE directory preferences |
133 | | -.directory |
134 | | - |
135 | | -# Linux trash folder which might appear on any partition or disk |
136 | | -.Trash-* |
137 | | - |
138 | | -# .nfs files are created when an open file is removed but is still being accessed |
139 | | -.nfs* |
140 | | - |
141 | | -### macOS ### |
142 | | -# General |
143 | | -.DS_Store |
144 | | -.AppleDouble |
145 | | -.LSOverride |
146 | | - |
147 | | -# Icon must end with two \r |
148 | | -Icon |
149 | | - |
150 | | - |
151 | | -# Thumbnails |
152 | | -._* |
153 | | - |
154 | | -# Files that might appear in the root of a volume |
155 | | -.DocumentRevisions-V100 |
156 | | -.fseventsd |
157 | | -.Spotlight-V100 |
158 | | -.TemporaryItems |
159 | | -.Trashes |
160 | | -.VolumeIcon.icns |
161 | | -.com.apple.timemachine.donotpresent |
162 | | - |
163 | | -# Directories potentially created on remote AFP share |
164 | | -.AppleDB |
165 | | -.AppleDesktop |
166 | | -Network Trash Folder |
167 | | -Temporary Items |
168 | | -.apdisk |
169 | | - |
170 | | -### macOS Patch ### |
171 | | -# iCloud generated files |
172 | | -*.icloud |
173 | | - |
174 | | -### VisualStudioCode ### |
175 | | -.vscode/* |
176 | | -!.vscode/settings.json |
177 | | -!.vscode/tasks.json |
178 | | -!.vscode/launch.json |
179 | | -!.vscode/extensions.json |
180 | | -!.vscode/*.code-snippets |
181 | | - |
182 | | -# Local History for Visual Studio Code |
183 | | -.history/ |
184 | | - |
185 | | -# Built Visual Studio Code Extensions |
186 | | -*.vsix |
187 | | - |
188 | | -### VisualStudioCode Patch ### |
189 | | -# Ignore all local history of files |
190 | | -.history |
191 | | -.ionide |
192 | | - |
193 | | -### Windows ### |
194 | | -# Windows thumbnail cache files |
195 | | -Thumbs.db |
196 | | -Thumbs.db:encryptable |
197 | | -ehthumbs.db |
198 | | -ehthumbs_vista.db |
199 | | - |
200 | | -# Dump file |
201 | | -*.stackdump |
202 | | - |
203 | | -# Folder config file |
204 | | -[Dd]esktop.ini |
205 | | - |
206 | | -# Recycle Bin used on file shares |
207 | | -$RECYCLE.BIN/ |
208 | | - |
209 | | -# Windows Installer files |
210 | | -*.cab |
211 | | -*.msi |
212 | | -*.msix |
213 | | -*.msm |
214 | | -*.msp |
215 | | - |
216 | | -# Windows shortcuts |
217 | | -*.lnk |
218 | | - |
219 | | -# End of https://www.toptal.com/developers/gitignore/api/macos,windows,linux,visualstudiocode,jetbrains+all,go |
220 | | - |
221 | | -!examples/cover |
| 5 | +# Recommended: Go.AllowList.gitignore |
| 6 | + |
| 7 | +# Ignore everything |
| 8 | +* |
| 9 | + |
| 10 | +# But not these files... |
| 11 | +!/.gitignore |
| 12 | + |
| 13 | +# Go |
| 14 | +!*.go |
| 15 | +!go.sum |
| 16 | +!go.mod |
| 17 | +!.golangci.yml |
| 18 | +!**/testdata/**/* |
| 19 | + |
| 20 | +# Task |
| 21 | +!Taskfile.yml |
| 22 | + |
| 23 | +# Git |
| 24 | +!.gitattributes |
| 25 | +!.gitignore |
| 26 | +!.mailmap |
| 27 | + |
| 28 | +# GitHub Actions |
| 29 | +!.github/**/*.yml |
| 30 | +!.github/**/*.yaml |
| 31 | +!.github/renovate.json |
| 32 | + |
| 33 | +# Docs |
| 34 | +!docs/**/*.png |
| 35 | +!docs/**/*.gif |
| 36 | +!docs/**/*.tape |
| 37 | +!docs/src/freeze.json |
| 38 | +!README.md |
| 39 | +!LICENSE |
| 40 | + |
| 41 | +# Other |
| 42 | +!.rumdl.toml |
| 43 | +!.typos.toml |
| 44 | +!codecov.yml |
| 45 | + |
| 46 | + |
| 47 | +# ...even if they are in subdirectories |
| 48 | +!*/ |
0 commit comments