百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

terraforming-rails

> 后端框架
开源

Terraforming 传统 Rails 应用程序的指南和工具

736 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Terraforming 传统 Rails 应用程序的指南和工具

Terraforming Rails

A collection of tools and guides to help you turn legacy code into legendary code.

Based on the RailsConf 2019 talk "Terraforming legacy Rails applications" (slides, video).

This project is brought to you by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.

Tools

Unreleased scripts

These scripts have been created during the development of different Rails projects at Evil Martians.

They're not universal enough to be extracted into libraries (some depend on particular Rails version or rely on project-specific assumptions), but they could be used a starting point for building tools for your project.

  • Lint/Env – RuboCop cop (restrict the usage of ENV and Rails.env in the app)
  • FactoryLinter – lint factory definitions
  • TimecopLinter – make sure you always travel back in time when using Timecop
  • TemplatesTracker – track unused templates
  • GemTracker - track potentially unused gems.

Gems

Tests

  • TestProf – analyze and improve test suite performance

Security

  • bundler-audit – check dependencies for known CVEs
  • brakeman – detect the app code's security issues

Database

  • database_validations – validations consistent with the DB constraints
  • database_consistency - check the consistency of the DB constraints and models validations
  • isolator – detect transactions with side-effects (non-atomic)

Dead code elimination

  • traceroute – detect unused routes/controller actions
  • factory_trace – detect unused FactoryBot factories/traits

Configuration

  • anyway_config – transparently use multiple sources of configuration at once

Analysis

  • attractor — churn/complexity analysis

Automation Tools

  • lefthook – language-agnostic git hook manager
  • danger – code review automation helper
  • pronto – linters runner to run checks only for the relevant changes

Examples

  • CircleCI — example CircleCI configuration files
  • Docker for Dev — example Docker for development configuration
  • Lefthook + Crystalball — git hooks for convenient development environment

Resources/Guides

  • Fight the flaky tests

License

The code is available as open source under the terms of the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubylegacyrailsrubytools

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架