Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cixtor/refactor
Command line tool and IDE integration API for code refactoring written in Go
https://github.com/cixtor/refactor
Last synced: 10 days ago
JSON representation
Command line tool and IDE integration API for code refactoring written in Go
- Host: GitHub
- URL: https://github.com/cixtor/refactor
- Owner: cixtor
- License: mit
- Created: 2017-05-06T14:17:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-22T04:57:44.000Z (about 1 month ago)
- Last Synced: 2024-11-22T05:26:59.479Z (about 1 month ago)
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Refactor
> Code refactoring is the process of restructuring existing computer code—changing the factoring—without changing its external behavior. Refactoring improves nonfunctional attributes of the software. Advantages include improved code readability and reduced complexity; these can improve source-code maintainability and create a more expressive internal architecture or object model to improve extensibility.
>
> Typically, refactoring applies a series of standardised basic micro-refactorings, each of which is (usually) a tiny change in a computer program's source code that either preserves the behaviour of the software, or at least does not modify its conformance to functional requirements. Many development environments provide automated support for performing the mechanical aspects of these basic refactorings. If done extremely well, code refactoring may also resolve hidden, dormant, or undiscovered computer bugs or vulnerabilities in the system by simplifying the underlying logic and eliminating unnecessary levels of complexity. If done poorly it may fail the requirement that external functionality not be changed, introduce new bugs, or both.
>
> — https://en.wikipedia.org/wiki/Code_refactoring## Usage
1. Preview the changes `refactor -a "Old Text" -b "New Text"`
1. Execute the changes `refactor -a "Old Text" -b "New Text" -x`![screenshot](screenshot.png)