Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lwnmengjing/goignorescanner
https://github.com/lwnmengjing/goignorescanner
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lwnmengjing/goignorescanner
- Owner: lwnmengjing
- License: apache-2.0
- Created: 2021-12-20T09:43:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-20T09:46:36.000Z (about 3 years ago)
- Last Synced: 2024-11-12T10:42:05.387Z (3 months ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ignore Scanner
A small go utility to scan the directories for ignore patterns typically .dockerignore, .gitingore
and list the files that are not ignored# Build locally
```shell script
git clone https://github.com/kameshsampath/goignorescanner
# $PROJECT_HOME
cd goignorescanner
./hack/build.sh
```# List files
```
./out/scanner -d pkg/scanner/testdata/starignore/
```A sample output of the scanner, that list files which are not ignored by .dockerignore available as part of the folder `$PROJECT_HOME/pkg/scanner/testdata/starignore/`
```shell script
pkg/scanner/testdata/starignore/README.md
pkg/scanner/testdata/starignore/target/foo-runner.jar
pkg/scanner/testdata/starignore/target/lib/one.jar
pkg/scanner/testdata/starignore/target/quarkus-app/one.txt
```