Coder Social home page Coder Social logo

terraforming-rails's Introduction

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).

Sponsored by Evil Martians

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.

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

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

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

Resources/Guides

License

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

terraforming-rails's People

Contributors

dukex avatar envek avatar hachi8833 avatar jandudulski avatar jcoyne avatar jnicho02 avatar jugatsu avatar michsch avatar oliverklee avatar palkan avatar philcoggins avatar radanisk avatar rubendinho avatar sponomarev avatar ukazap avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.