You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scanner uses a YAML configuration file (`regex_config.yaml`) to define rules and regex patterns.
47
47
48
-
## Ignoring Directories
48
+
## Matrix File Format
49
49
50
-
You can create a `.scannerignore` file in the directory you are scanning (usually the repo root) to list directories to skip, one per line.
50
+
When using `--matrix-file`, you must provide a YAML file specifying dependencies and versions.
51
51
52
-
## Known Issues & Future Investigations
53
-
-**Binary Ignores in `.scannerignore`**: Recursive wildcard ignores (e.g., `*.jpg`) currently do not effectively ignore deeply nested binary files. The scanner logic should be investigated to support robust globbing or full-path suffix matching.
52
+
### Example
53
+
```yaml
54
+
python:
55
+
- "3.10"
56
+
- "3.11"
57
+
protobuf: "4.25.8"
58
+
```
59
+
60
+
> [!IMPORTANT]
61
+
> **Versions must be specified as quoted strings** (e.g., `"3.10"`, not `3.10`). This prevents YAML parsers from converting them to floats (which would truncate `3.10` to `3.1`).
62
+
63
+
## Ignoring Directories and Files
64
+
65
+
In order to ignore files OR entire directories, you can add ignore patterns to the `.scannerignore` file located in the same directory as the script (`scripts/version_scanner/.scannerignore`). Ignore patterns should be added one per line.
66
+
67
+
### Features
68
+
- **Case-insensitive**: All patterns are matched case-insensitively.
69
+
- **Globbing**: Supports standard shell globbing patterns (e.g., `*.jpg`, `test_*`).
70
+
- **Subpaths**: You can specify subpaths (e.g., `packages/pkg_a/.nox`).
71
+
- **Root Anchoring**: Patterns starting with a slash `/` are anchored to the root of the scan (e.g., `/packages` ignores the `packages` directory at root, but not `some/other/packages`).
0 commit comments