Giter VIP home page Giter VIP logo

method_duplicator's Introduction

MethodDuplicator

Capture d’écran du 2022-10-28 09-39-45

Usage

This allows you to see the methods that are never called but are declared.

Installation

requirement :

  • Rails > 6.1
  • Ruby

Add this line to your application's Gemfile:

gem 'method_duplicator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install method_duplicator

Tasks

There is only one task at the moment that lists all the methods that are in the app/ folder and the number of times they are called.

$ rails method_duplicator:methods

Todo

  • writing automatic tests (install RSpec)
  • Filter the methods to have only the one with 0 declarations
  • Make sure that in the file where the method is declared it can be called without the dot but not in the others
  • Allow to pass parameters (path for example)
  • customize colors for a better visibility
  • optimization of the algo and the performance
  • Export to CSV in tmp/
  • Find another way (ctags, intellisense etc) to get the declarations without doing a complete parsing of the app

πŸ‘¨β€πŸ’» Contributing

To contribute to this repository, feel free to create a new fork of the repository and submit a pull request.

  • Fork / Clone and select the main branch.
  • Create a new branch in your fork.
  • Make your changes.
  • Commit your changes, and push them.
  • Submit a Pull Request here!

πŸ“‹ License

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

method_duplicator's People

Contributors

theodugautier avatar vincentsidecare avatar

Watchers

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