Skip to content

Feature Request: Implement --ignore CLI flag for path/directory exclusion #169

Closed

Description

@squid-protocol

📝 Context & Problem Statement
Currently, the galaxyscope CLI executes a full optical sequence on the target directory. While we can point the engine at specific subdirectories (e.g., galaxyscope gitgalaxy/), there is no native way to exclude specific paths from a root scan.

This causes the CI/CD pipeline to fail when the engine audits its own repository, as the Vault Sentinel and structural density scanners trigger false positives on mock data, hardcoded secrets in test suites (tests/), and high-density build artifacts.

💡 Proposed Solution
Wire up an --ignore argument in the CLI's argparse configuration to allow users to pass a list of paths or directories that the engine should skip during the initial file discovery phase (Radar/Optical Sequence).

🛠️ Implementation Requirements
CLI Argument: Update argparse in galaxyscope.py to accept an --ignore flag. It should handle a list of strings (e.g., --ignore tests/ docs/ .venv/).

File Filtering: Pass the ignore list into the filesystem walker (Radar phase).

Early Exclusion: Ensure ignored paths are filtered out before the artifacts are bundled and sent to the ProcessPoolExecutor for the worker nodes to process. This saves compute time.

✅ Acceptance Criteria
[ ] Running galaxyscope . --ignore tests/ successfully parses without an "unrecognized arguments" error.

[ ] The engine explicitly skips scanning files inside the tests/ directory.

[ ] The engine's internal telemetry correctly reflects the reduced file count.

[ ] The native bitbucket-pipelines.yml file for GitGalaxy can be updated to use --ignore tests/ and successfully pass the --fail-on-secrets gate.

A Quick Technical Pointer
When you go to implement this in galaxyscope.py, you'll want to add nargs='+' to your argument parser so it can accept multiple folders at once.

Something like this:

Python
parser.add_argument('--ignore', nargs='+', default=[], help='List of directories or files to ignore (e.g., --ignore tests/ node_modules/)')
Then, intercept that list right when your chronometer/radar starts walking the OS, and just continue if the current path matches anything in the ignore list.

Activity

  1. added
    scope:frontier
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions