undebt:快速,简单,可靠的工具,用于执行大规模的自动代码重构

上传者: 42102358 | 上传时间: 2022-05-25 16:31:44 | 文件大小: 54KB | 文件类型: ZIP
欠债 Undebt是一种快速,直接,可靠的工具,用于执行使用大规模,自动代码重构。 Undebt使您可以使用标准,简单的Python定义复杂的查找和替换规则,可以使用一个简单的命令将其快速应用于整个代码库。 要了解什么是Undebt以及我们为什么创建它,请查看我们的。 开始使用 要开始使用Undebt,请使用 pip install undebt 然后转到我们的以获取更多信息。 例子 虽然可以在文档中找到的,但是为了向您展示如何完成,我们将深入研究一个示例,特别是 。 像大多数示例一样,此模式是为Python构建的,但从理论上讲,Undebt可以与任何语言一起使用。 这种模式的思想是通过使所有不继承自其他任何东西的类都继承自object从而将任何用法转换。 此模式的代码非常简单-仅四行就不计入进口: grammar = INDENT + Keyword ( "class" ). su

文件下载

资源详情

[{"title":"( 76 个子文件 54KB ) undebt:快速,简单,可靠的工具,用于执行大规模的自动代码重构","children":[{"title":"undebt-master","children":[{"title":".travis.yml <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"requirements-dev.txt <span style='color:#111;'> 117B </span>","children":null,"spread":false},{"title":".coveragerc <span style='color:#111;'> 579B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"source","children":[{"title":"conf.py <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"pyparsing.rst <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"cli.rst <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"util.rst <span style='color:#111;'> 6.04KB </span>","children":null,"spread":false},{"title":"patterns.rst <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"examples.rst <span style='color:#111;'> 6.13KB </span>","children":null,"spread":false},{"title":"index.rst <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"contributing.rst <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"tests","children":[{"title":"pattern","children":[{"title":"util_test.py <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"lang","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"python_test.py <span style='color:#111;'> 3.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"interface_test.py <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"common_test.py <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"cmd","children":[{"title":"logic_test.py <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"logger_test.py <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"main_test.py <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false}],"spread":true},{"title":"inputs","children":[{"title":"method_to_function_input.txt <span style='color:#111;'> 794B </span>","children":null,"spread":false},{"title":"method_to_function_output.txt <span style='color:#111;'> 798B </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"attribute_to_function_test.py <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"nl_at_eof_test.py <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"sqla_count_test.py <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"remove_needless_u_specifier_test.py <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"contextlib_nested_test.py <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"hex_to_bitshift_test.py <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"swift_test.py <span style='color:#111;'> 732B </span>","children":null,"spread":false},{"title":"deprecated_inequality_operator_test.py <span style='color:#111;'> 627B </span>","children":null,"spread":false},{"title":"dbl_quote_docstring_test.py <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"exec_function_test.py <span style='color:#111;'> 906B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"class_inherit_object_test.py <span style='color:#111;'> 840B </span>","children":null,"spread":false},{"title":"method_to_function_test.py <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"remove_unused_import_test.py <span style='color:#111;'> 897B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"tox.ini <span style='color:#111;'> 626B </span>","children":null,"spread":false},{"title":"setup.cfg <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 17B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"undebt","children":[{"title":"pattern","children":[{"title":"common.py <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"testing.py <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"lang","children":[{"title":"python.py <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 24B </span>","children":null,"spread":false}],"spread":false},{"title":"interface.py <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"util.py <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 460B </span>","children":null,"spread":false}],"spread":true},{"title":"cmd","children":[{"title":"main.py <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"logger.py <span style='color:#111;'> 605B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"logic.py <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"__main__.py <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 290B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"swift.py <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"method_to_function.py <span style='color:#111;'> 990B </span>","children":null,"spread":false},{"title":"hex_to_bitshift.py <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"contextlib_nested.py <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"deprecated_inequality_operator.py <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"attribute_to_function.py <span style='color:#111;'> 863B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"dbl_quote_docstring.py <span style='color:#111;'> 606B </span>","children":null,"spread":false},{"title":"remove_needless_u_specifier.py <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"class_inherit_object.py <span style='color:#111;'> 674B </span>","children":null,"spread":false},{"title":"exec_function.py <span style='color:#111;'> 734B </span>","children":null,"spread":false},{"title":"sqla_count.py <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"remove_unused_import.py <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"nl_at_eof.py <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":false},{"title":"pyparsing.py <span style='color:#111;'> 496B </span>","children":null,"spread":false}],"spread":true},{"title":"Makefile <span style='color:#111;'> 669B </span>","children":null,"spread":false},{"title":"readthedocs.yml <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.78KB </span>","children":null,"spread":false},{"title":"LICENSE.txt <span style='color:#111;'> 10.47KB </span>","children":null,"spread":false},{"title":".pre-commit-config.yaml <span style='color:#111;'> 947B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明