Skip to content
Merged
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
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,40 @@ megalinter-reports/
# stages everything when it pushes auto-fixes back β€” which is how an empty .pyc reached main.
__pycache__/
*.py[cod]

# Compiled Go binaries. Every scripts/<name>/ is a `main` package, and a build drops its output in
# one of two places: `go build ./scripts/<name>/` from the repository root writes at the root,
# `go build .` from inside scripts/<name>/ writes there β€” hence the two blocks below. (`go build
# ./...` builds every package but discards the executables, so it leaves nothing to ignore.) A
# directory-wide `git add` otherwise stages a ~4 MB Mach-O binary alongside the source without
# comment.
#
# Four output names reach those two places:
# <name> `go build ./scripts/<name>/` β€” named after the package directory
# main `go build main.go` β€” named after the first source file
# <name>.test `go test -c` β€” also retained by -cpuprofile and friends
# *.exe any of the above under GOOS=windows (`go test -c` gives <name>.test.exe)
#
# The extensionless names are listed literally rather than matched by a glob for extensionless
# files: that glob would also hide a legitimately extensionless file someone adds later, and a
# silently ignored source file is a worse failure than a binary that `git status` still shows.
# `.exe` and `.test` are unambiguous compiled-artifact extensions, so those two are globbed. Add a
# line to each block when a new scripts/<name>/ package appears.
/generate-kubescape-exceptions
Comment thread
devantler marked this conversation as resolved.
/kubescape-backlog-bridge
/validate-concurrency-queue
/validate-dr-signing
/validate-eks-ci-role-policy
/validate-merge-group-heal
/main
/*.exe
/*.test
/scripts/*/generate-kubescape-exceptions
Comment thread
devantler marked this conversation as resolved.
/scripts/*/kubescape-backlog-bridge
/scripts/*/validate-concurrency-queue
/scripts/*/validate-dr-signing
/scripts/*/validate-eks-ci-role-policy
/scripts/*/validate-merge-group-heal
/scripts/*/main
/scripts/*/*.exe
/scripts/*/*.test
Loading