Skip to content

Conversation

@fletchgqc
Copy link
Contributor

No description provided.

fletchgqc and others added 2 commits August 11, 2025 14:06
…etection

- Add fixture tests demonstrating current incorrect behavior (renames succeed when they should fail)
- Add unit tests showing current VariableNameValidator only checks descendants, not parent scopes
- Add explicit failing tests that demonstrate the expected behavior
- Tests show rename operations incorrectly allow conflicts with variables in accessible parent scopes
- Ready for green phase: implement parent scope checking in VariableNameValidator

Note: Quality issues in test files are acceptable during red TDD phase
- Update rename command implementation and validation
- Replace old test fixtures with cleaner structure
- Add new test cases for parameter, parent scope, and same scope conflicts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@devill
Copy link
Owner

devill commented Aug 11, 2025

Thanks for your PR!

The build is failing due to a quality check. Otherwise the solution seems good and I'll merge it once the single use variables are inlined and the tests pass.

…mand

Eliminated 4 single-use variables in RenameCommand using RefakTS inline-variable:
- sourceFile variable in execute method
- node variable in execute method
- transformation variable in performRename method
- scope variable in validateNewName method

This removes the file from quality baseline as all violations are now resolved.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@fletchgqc
Copy link
Contributor Author

hehe oops, I just assumed that that was in my pre-commit hook :-).

@devill
Copy link
Owner

devill commented Aug 11, 2025

Thanks again! Merged!

@devill devill merged commit b86e87e into devill:main Aug 11, 2025
2 checks passed
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.

2 participants