Skip to content

0x2C6/deadlyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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