Skip to content

Commit cb80974

Browse files
authored
Merge pull request #3912 from kuritka/go-allow-list-community
Adding AllowList for Go
2 parents 3b6d9b0 + 4e89ae3 commit cb80974

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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.
4+
#
5+
# Recommended: Go.AllowList.gitignore
6+
7+
# Ignore everything
8+
*
9+
10+
# But not these files...
11+
!/.gitignore
12+
13+
!*.go
14+
!go.sum
15+
!go.mod
16+
17+
!README.md
18+
!LICENSE
19+
20+
# !Makefile
21+
22+
# ...even if they are in subdirectories
23+
!*/

0 commit comments

Comments
 (0)