Skip to content

Directories named types are silently excluded from scans #16

Description

@CodeDeficient

The isExcludedPath function uses segment-based matching to skip types/ directories, which is meant to filter out auto-generated TypeScript type definition folders. But it also catches legitimate hand-written src/types/ directories that many projects use for their own type definitions.

This isn't a new problem — the old glob pattern **/types/** did the same thing — but now that it's segment-based it's harder to override via config. If you have a directory literally named types with source code you want scanned, there's no way to opt it back in.

Possible fixes:

  • Only exclude .d.ts files instead of entire types/ directories (we already skip .d.ts by extension)
  • Make the types exclusion configurable so projects can override it
  • Only exclude root-level types/ instead of any types segment

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions