A command-line tool for creating Bad code detection
- Node.js installed (version 7 >= 0)
- Git clone this repository
cd kodesmell-script
npm run build
If you encounter errors on npm run build
, try npm run remove
first then run npm run build
npm run remove
If you encounter and problems installing Kodesmell. Issue it in https://github.com/kodesmell/kodesmell-script/issues.
- Run
kodesmell init
in your project folder.
- This will init .kodesmell folder in this folder.
- Do not add .kodesmell folder to .gitignore, since this folder will hold basic configs (no credentials)
- Add kodesmell comment to any code that stinks.
- kodesmell comment should look like this
// ;) Should handle error cases
,// ;) Put this code to configs
(#904c3e9);)
is the symbol Kodesmell uses to detect your sadness.
- Run
kodesmell run [folder | file]
- e.g)
kodesmell run
(runs at YOUR_PROJECT_FOLDER) - e.g)
kodesmell run src
(runs at YOUR_PROJECT_FOLDER/src) - IMPORTANT Do not run on production code. Production codes usually contains
;)
as result of minifying. Later we will change Kodemell symbol. But still then, please do not run this on production code.
-
Kodesmell will assign auto-generated hash to each kodemsell comments
-
Result will be pushed to your Kodesmell Database and you can view it in Android App.