Rename refactoring should check whether the target variable exists

未关闭
#779 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 7 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
tooling

调研方向

This is a tracking issue for several rename bugs in rope, a Python refactoring library, and it does not name a file or test. Start by reading the linked tickets (#776, #769, #768, #766, #765, #764, #763, #761) to find the concrete rename cases, then reproduce one of them against rope's rename refactoring. Done means a rename whose target name is already taken is rejected with a clear error, and the listed cases are verified against that change.

由索引模型根据 Issue 内容生成。

描述

enhancement rename-refactor

The following series of tickets all have the same root cause, rope currently doesn't validate whether the target variable name is currently occupied by another existing variable:

  • #776
  • #769
  • #768
  • #766
  • #765
  • #764
  • #763
  • #761

Collecting here into one big ticket since most of them will likely be resolved by the same solution.

Once this ticket is resolved, we'll go through each ticket to verify that those cases are addressed by the solution.

主要语言
Python
星标
2.2k
派生
197
平均合并
2 天 13 小时
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python-rope/rope 的其他 Issue

查看 python-rope/rope 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。