Project

deadlyzer

0.0
No release in over 3 years
Low commit activity in last 3 years
Scan find unused constant on other directories, compare and remove
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.0
~> 3.0

Runtime

 Project Readme

Deadlyzer

Deadlyzer lets you to compare directories and reveal unreferenced, uncalled constats to remove

Installation

Add this line to your application's Gemfile:

gem 'deadlyzer'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install deadlyzer

Usage

To use deadlyzer you should create deadlyzer.yml file with following content

target: 
  path: './app/workers'
  exclude_consts:
    - 'Sidekiq::Worker' 
against:   
  path: './app/controllers'

Available options

  • exclude_const (Array)
  • exclude_dirs (Array)
user@desktop: ~$ deadlyzer # to run

Development

Working principle is simple enough. Gem uses Rubocup and Parser gems to creat Abstract Syntax Tree. Using '(const ...)' pattern to match with nodes on the tree

Contributing

Deadlyzer is still under development and created to use personal purpose where problems can solve with finding uncalled constants. If you also need it or would like to contribute it would be great :)