Skip to content

Find imports whose case differs from the header file name - #60

Merged
dblock merged 1 commit into
dblock/includefrom
dblock/case-insensitive-imports
Nov 25, 2026
Merged

dblock merged 1 commit into
dblock/includefrom
dblock/case-insensitive-imports

Conversation

@dblock

@dblock dblock commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Xcode builds on case-insensitive file systems, so #import "myclass.h" resolves to MyClass.h and the header is used. fui compared file names case-sensitively and reported such headers as unused, which is what was happening in #21 (an import in a MyClass_Private.h class extension with a lowercase letter). Imports now match case-insensitively.

Closes #21.

Stacked on #59.

Validation: bundle exec rake (RuboCop and RSpec, 47 examples, 0 failures). The new case_insensitive fixture spec fails without the change.

This PR was written by an AI (Claude) acting on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21jbMhZrzCZWr9QtJeM

@dblock
dblock added this pull request to stack #61 November 25, 2026 13:18
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Danger Report

No issues found.

View run

Xcode builds on case-insensitive file systems, so `#import "myclass.h"`
resolves to `MyClass.h`. Match imports case-insensitively.

Closes #21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21jbMhZrzCZWr9QtJeM
@dblock
dblock force-pushed the dblock/case-insensitive-imports branch from 37c816e to 23b30fa Compare November 25, 2026 13:59
@dblock
dblock merged commit db6555a into master Nov 25, 2026
5 of 10 checks passed
@dblock
dblock deleted the dblock/case-insensitive-imports branch November 25, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doesn't include class extensions when determining if something is unused

1 participant