fastruby / next_rails

A toolkit to upgrade your next Rails application
https://www.fastruby.io/blog/upgrade-rails/dual-boot/dual-boot-with-rails-6-0-beta.html?utm_source=github&utm_medium=description&utm_campaign=github&utm_term=next-rails
MIT License
466 stars 28 forks source link

Add shitlist path option to deprecations command. #107

Closed rscnt closed 1 year ago

rscnt commented 1 year ago

Description

This change aims to introduce a new option to the deprecations command to allow for a custom path to be defined.

It adds a new option "--shitlist-path" where the user could defined a custom deprecation json file path.

bin/deprecations --shitlist-path spec/support/deprecations.json info

Motivation and Context

The DeprecationTracker allows to define a "shitlist_path" option when when declaring a tracker for rspec or minitest.

But this custom path cannot be used with the "deprecations" command, since until now it expects a fixed path.

How Has This Been Tested?

Screenshots:

I will abide by the code of conduct