Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Config file

Create a .ghostdep.yaml in your project root:

ghostdep init

Or write one manually:

ignore_deps:
  - "internal-*"
  - "my-shared-lib"
ignore_paths:
  - "scripts/**"
  - "generated/**"
include_dev: true
min_confidence: low
format: text
cache: false

Config options

OptionTypeDefaultDescription
ignore_depslist of globs[]Dependencies to exclude from findings
ignore_pathslist of globs[]File paths to skip during scanning
include_devbooltrueWhether to analyze dev dependencies
min_confidencelow/medium/highlowMinimum confidence threshold
formattext/json/sariftextOutput format
threadsnumber or nullnull (all cores)Max scanner threads
cacheboolfalseEnable incremental scan cache

Precedence

Configuration is resolved in three layers:

  1. Defaults — hardcoded sensible values
  2. Config file.ghostdep.yaml overrides defaults
  3. CLI flags — always win over config file

ignore_deps and ignore_paths are additive across all layers. Everything else is last-writer-wins.

Example: suppress known false positives

ignore_deps:
  - "internal-*"       # internal packages in your monorepo
  - "my-codegen-lib"   # generated code imports this

Example: CI-optimized config

format: sarif
min_confidence: medium
include_dev: false
cache: true
ignore_paths:
  - "test/**"
  - "scripts/**"