Skip to content

Fix false positive when import and usage are on the same line (#292)#324

Merged
hakancelikdev merged 1 commit intomainfrom
fix/same-line-import-usage-false-positive
Feb 18, 2026
Merged

Fix false positive when import and usage are on the same line (#292)#324
hakancelikdev merged 1 commit intomainfrom
fix/same-line-import-usage-false-positive

Conversation

@hakancelikdev
Copy link
Owner

Change strict less-than to less-than-or-equal in Name.match_2 lineno comparison so that semicolon-separated import+usage on the same line is correctly recognized as used.

Change strict less-than to less-than-or-equal in Name.match_2 lineno
comparison so that semicolon-separated import+usage on the same line
is correctly recognized as used.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hakancelikdev hakancelikdev linked an issue Feb 18, 2026 that may be closed by this pull request
@hakancelikdev hakancelikdev merged commit 4f23a1b into main Feb 18, 2026
35 checks passed
@hakancelikdev hakancelikdev deleted the fix/same-line-import-usage-false-positive branch February 18, 2026 10:13
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.

False positives

1 participant