Deprecool
A static ruby code analyzer to find your deprecated code!
For any developer who has ever ignored a gem's warning and then ran into an error when they went to update
Usage
Add to your gemfile: gem 'deprecool'
Or directly gem install deprecool
Then you can run deprecool in the command line to get:
Commands:
deprecool list # Display which finders are used in this version
deprecool scan [PATHS] # Scan files or directories for known deprecations
deprecool version # Print the deprecool version
Scan
deprecool scan has several options that can be passed, or it can be run in a folder with a Gemfile.lock to automatically look for deprecations based on the currently installed gems.
--gemtakes a comma separated list of gems to scan for:
deprecool scan --gem=rails,ruby
(make sure there are no spaces between the gem names)
--format=jsonif you want the output as json instead of the default text--lockfiletakes a path to yourGemfile.lock, it defaults to using the current directory--allrun every finder regardless of applicability--pathsan array of the files or directories to look for ruby file in, defaults to'.'