Git Product home page Git Product logo

removeunused's Introduction

RemoveUnused

Removes unused code, given a ReSharper-generated list of code issues

This isn't a nicely-finished CL app because I only needed to use the code once, but:

  1. Open your solution in Rider or Visual Studio with ReSharper
  2. Make sure your solution is checked into version control in case it all goes wrong
  3. Use the find code issues tool to list unused methods
  4. If there are more methods than you want to remove by hand, then this is the tool for you.
  5. Export ReSharper's list of issues as an XML file
  6. Check out and build this repo
  7. Mess with ForReal.cs so it points at your code and xml file
  8. Run the explicit "test" to nuke your unused code
  9. Try to build your solution, revert any specific edits that broke compilation

There were a few incorrectly removed methods when I tried this on a large codebase, but it still saved a lot of time compared to mashing alt+enter.

removeunused's People

Contributors

samblackburn avatar

Stargazers

sunriseyuen avatar

Watchers

James Cloos avatar  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.