This puts all the codesmelling information you need right at your fingertips.
- clone the repo
- change directory into the root directory of the repository
sudo ./install.sh
- clone the repo
- add an alias into your ~/.bashrc or ~/.zshrc for
codesmells=<path-to-source>/codesmells.sh
Now you have a cheat sheet for many code smells right at your fingertips. No internet required!
usage:
codesmells
codesmells bloaters
codesmells bloaters primitive-obsession
if you already know the name of the smell you can shortcut the category:
codesmells primitive-obsession
codesmells has a discoverable CLI - so just run codesmells
and go from there
If you have not modified the git settings for this repository, running codesmells --update
will update your installation.
Under the hood, it just runs git pull
but if more needs to be done - it will be added to that section of the script.
I am sourcing all of my information from https://sourcemaking.com/refactoring - the information there is richer so go ahead and check it out. Command line does have limitations after all ;)