Skip to content

IGNORED_DIRECTORIES case-mismatch silently disables 9 of the config's own ignore rules #255

Closed

Description

@squid-protocol

File: aperture.py
Labels: bug, correctness, priority:high
pythonself.ignored_directories = set(self.config.get("IGNORED_DIRECTORIES", set())) # raw case, never normalized
...
low_part = part.lower()
if low_part in self.ignored_directories:
return False
The path component is lowercased before comparison, but the config set itself is never lowercased at load time. gitgalaxy_config.py's IGNORED_DIRECTORIES deliberately includes mixed-case entries that match real-world folder conventions — CVS, Pods, Carthage, Release, Debug, CMakeFiles, TestResults, DerivedData, __MACOSX. None of these can ever match, because "pods".lower() ("pods") is never equal to the stored "Pods". (4 other mixed-case entries — LICENSE(S), DOCS, LEGAL — happen to have a lowercase duplicate elsewhere in the set, so those still work; the 9 above don't.)
Impact: iOS/Xcode repos (Pods, Carthage, DerivedData, __MACOSX) and CMake/C++ repos (CMakeFiles, Release, Debug) will have their vendor/build directories scanned as if they were source — exactly the noise this config exists to filter out.
Fix: self.ignored_directories = {d.lower() for d in self.config.get("IGNORED_DIRECTORIES", set())}.

Activity

  1. added
    bug
    core-engine
    priority: high
    on Jul 18, 2026
  2. added a commit that references this issue on Jul 23, 2026
    023a1ec
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

    bugcore-enginepriority: high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions