All Projects → bm371613 → refren

bm371613 / refren

Licence: MIT license
A language agnostic, code-style aware, refactoring/renaming tool.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to refren

Autorefactor
Eclipse plugin to automatically refactor Java code bases
Stars: ✭ 168 (+784.21%)
Mutual labels:  refactoring
All Repos
Clone all your repositories and apply sweeping changes.
Stars: ✭ 197 (+936.84%)
Mutual labels:  refactoring
Escape From Callback Mountain
Example Project & Guide for mastering Promises in Node/JavaScript. Feat. proposed 'Functional River' pattern
Stars: ✭ 249 (+1210.53%)
Mutual labels:  refactoring
Code Smells And Feels
Talk on code smells and feels and how to change that via refactoring
Stars: ✭ 178 (+836.84%)
Mutual labels:  refactoring
Migration
《系统重构与迁移指南》手把手教你分析、评估现有系统、制定重构策略、探索可行重构方案、搭建测试防护网、进行系统架构重构、服务架构重构、模块重构、代码重构、数据库重构、重构后的架构守护
Stars: ✭ 2,753 (+14389.47%)
Mutual labels:  refactoring
Learning Oop In Php
A collection of resources to learn object-oriented programming and related concepts for PHP developers.
Stars: ✭ 2,359 (+12315.79%)
Mutual labels:  refactoring
Refactoring Summary 2nd Javascript
Summary of "Refactoring: Improving the Design of Existing Code (2nd Edition)" by Martin Fowler
Stars: ✭ 142 (+647.37%)
Mutual labels:  refactoring
redux-usage-report
A Redux Devtools monitor to audit your app's usage of the store
Stars: ✭ 41 (+115.79%)
Mutual labels:  refactoring
Js Refactor
JS Refactoring tool for Visual Studio Code
Stars: ✭ 195 (+926.32%)
Mutual labels:  refactoring
Best Of Python Dev
🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.
Stars: ✭ 243 (+1178.95%)
Mutual labels:  refactoring
Refactoringminer
Stars: ✭ 177 (+831.58%)
Mutual labels:  refactoring
Tagalong.vim
Change an HTML(ish) opening tag and take the closing one along as well
Stars: ✭ 184 (+868.42%)
Mutual labels:  refactoring
Refactor Nrepl
nREPL middleware to support refactorings in an editor agnostic way
Stars: ✭ 213 (+1021.05%)
Mutual labels:  refactoring
Pre Commit Hooks
Some out-of-the-box hooks for pre-commit
Stars: ✭ 2,605 (+13610.53%)
Mutual labels:  refactoring
atom-refactoring
Atom package that provides refactoring capabilities for your PHP source code.
Stars: ✭ 16 (-15.79%)
Mutual labels:  refactoring
Vim Php Refactoring Toolbox
VIM Php Refactoring Toolbox
Stars: ✭ 164 (+763.16%)
Mutual labels:  refactoring
Abracadabra
Automated refactorings for VS Code (JS & TS) ✨ It's magic ✨
Stars: ✭ 204 (+973.68%)
Mutual labels:  refactoring
looong
Discovery of Long Parameter List
Stars: ✭ 16 (-15.79%)
Mutual labels:  refactoring
rubocop-auto-correct
Auto-correct ruby source code by using rubocop in Atom.
Stars: ✭ 29 (+52.63%)
Mutual labels:  refactoring
Quiz App
A repository reflecting the progress made on the "How to Build iOS Apps with Swift, TDD & Clean Architecture" YouTube series, by Caio & Mike.
Stars: ✭ 230 (+1110.53%)
Mutual labels:  refactoring

refren: refactor/rename

Build Status

The refren command facilitates refactoring/renaming in cases when you want to rename a concept that appears in your code rather than a specific variable or class. So, if you decide that "JS example" should be renamed to "javascript dummy", refren will do it for you, aware of different code styles.

Simple example

$ cat src/lib.js

const JS_EXAMPLE_STATIC_CONST = 44

function jsExampleFunction(firstJsExampleArgument, secondJsExampleArgument) {
}

module.exports = {
    jsExampleFunction
}

$ cat src/lib.js | refren 'JS example' 'javascript dummy'

const JAVASCRIPT_DUMMY_STATIC_CONST = null

function javascriptDummyFunction(firstJavascriptDummyArgument, secondJavascriptDummyArgument) {
}

module.exports = {
    javascriptDummyFunction
}

Using together with the find command

refren can be easily used together with the find command:

$ find src -name "*.js" | xargs refren "JS example" "javascript dummy"

Installation

cargo install refren
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].