Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 589 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 589 Bytes

constants-resolver

A tool for tracking down not resolving constants in Ruby projects. See the context: https://blog.arkency.com/tracking-down-not-resolving-constants-with-parser/

Usage:

bundle exec ruby collector.rb app/

Expected output:

[PROJECT_ROOT]/app/controllers/vehicles/cars_controller.rb:3:15   ::Car

[PROJECT_ROOT]/app/controllers/vehicles/plains_controller.rb:3:30 ::Paginatiors::SimplePaginator
[PROJECT_ROOT]/app/controllers/vehicles/plains_controller.rb:3:60 Vehicles::Plain

[PROJECT_ROOT]/app/models/vehicles/car.rb:5:19    Presenters::CarPresenter