Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Feature request: Support .gitignore and/or exclusion patterns #100

Description

@linhle123

Problem

Nuanced indexes all JS/TS files in a directory, including files that shouldn't be analyzed:

  • Build output directories (dist/, build/, out/)
  • Test artifacts and fixtures
  • Vendored/bundled third-party libraries
  • Generated code

Impact

  • Bundled files (e.g., webpack/esbuild output) can contain entire libraries, inflating function counts from hundreds to thousands
  • Analysis times go from seconds to 60+ seconds (hitting timeouts)
  • Memory usage spikes (observed 2-3GB for bundled code)
  • Code graph becomes noisy with library internals

Requested solutions (any would help)

  1. Respect .gitignore by default - Most common exclusions are already there
  2. Support a .nuancedignore file - Similar to .dockerignore, allows project-specific exclusions
  3. Add --exclude flag to nuanced index - CLI option for ad-hoc exclusions (e.g., nuanced index --exclude "dist/**")
  4. Add --include flag - Explicitly specify what to index

Current workaround

Manually delete artifacts before indexing, or use explicit directory arguments.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions