Feature: Add AST-based unused variable detection#1014
Open
himnishag wants to merge 13 commits into
Open
Conversation
Owner
|
@himnishag issue number? |
Author
|
issue number is Fixes #791 |
…thub.com/himnishag/AI-dev-assistant into feature/python-unused-variable-detection
23e3954 to
44e326a
Compare
Author
|
I have fixed the lint and formatting issues and pushed the latest changes. Could you please approve the pending workflows and review the PR? Thank you. |
Author
|
I have fixed the formatting issue and pushed the latest commit (Apply CI black formatting). The workflows are currently awaiting maintainer approval. Could you please approve the pending workflows and re-review the PR? Thank you. |
Owner
|
@himnishag resolve conflicts |
Author
|
Hi @imDarshanGK, I've resolved the merge conflicts in the PR and merged the latest Could you please review it again? Let me know if any further changes are needed. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR adds AST-based unused variable detection to the Python analyzer.
What was added
detect_unused_variables()using Python's built-in AST module._.analyze()pipeline.Example
Detected issue:
yis assigned but never used.Related Issue
Fixes # 45
Type of change
Checklist
mainpytest -vand all tests passfeat/fix/docs/test: short descriptionScreenshots (if frontend change)
N/A
Test evidence