scanner: option to exclude specific patterns
The scanner will create a set containing for each pattern one regex object, compiled from the regex generated from fnmatch.translate.
parent
62be9f10
No related branches found
No related tags found
Showing
- swh/scanner/cli.py 44 additions, 4 deletionsswh/scanner/cli.py
- swh/scanner/exceptions.py 4 additions, 0 deletionsswh/scanner/exceptions.py
- swh/scanner/scanner.py 59 additions, 15 deletionsswh/scanner/scanner.py
- swh/scanner/tests/data.py 1 addition, 0 deletionsswh/scanner/tests/data.py
- swh/scanner/tests/data/sample-folder-result-no-toexclude.json 12 additions, 0 deletions...scanner/tests/data/sample-folder-result-no-toexclude.json
- swh/scanner/tests/data/sample-folder-result.json 13 additions, 1 deletionswh/scanner/tests/data/sample-folder-result.json
- swh/scanner/tests/data/sample-folder/toexclude/example.txt 1 addition, 0 deletionsswh/scanner/tests/data/sample-folder/toexclude/example.txt
- swh/scanner/tests/test_cli.py 16 additions, 0 deletionsswh/scanner/tests/test_cli.py
- swh/scanner/tests/test_scanner.py 37 additions, 7 deletionsswh/scanner/tests/test_scanner.py
swh/scanner/tests/test_cli.py
0 → 100644
Please register or sign in to comment