Integrated Plato - static analysis tool #48
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I installed the plato module using: npm install -g plato.
Then I ran the command plato -r -d report src, which generated an output directory report, analyzing the code in the src directory:
This is a screenshot of the report directory created in the project folder:
This is a screenshot of the display.html file generated by the tool:
This is a screenshot of the index.html file generated by the tool:
I have also pushed the report directory to GitHub, and you can see the directory in the latest commit.
All the checks are passing when I run npm run test after installing and running plato.
But when I run npm run lint, I get an error. This is because, the size and number of files in the report directory is too large.
Once I remove the report directory from my repository, npm run lint passes without any issue. For the purpose of showing evidence that the plato tool was downloaded and run successfully, I am keeping it in the directory even though its size causes npm run lint to fail.