Install Plato (One time setup)
Run the following command in your
- Command Prompt (Windows)
- npm install -g plato
- Terminal (Mac)
- sudo npm install -g plato
- You would be asked to type your system’s password
Analyze the code
- Open Terminal (Or Command Prompt in Windows)
- Run following command
- plato -r -d reports ./
- Access the reports in directory named “reports”
If you run the plato check often during development, the report will show the changes (positive / negative) in the number of issues being reported. And the underlying jshint review tool is completely configurable to include / exclude various checks. Read manual in the links supplied.
Be the first to leave a comment
You must be Logged on to comment or reply to a post.