Add functionality for JSHint static analysis tool #60
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.
Tool: JSHint
Installed JSHint through npm, which added this to the package.json file. I tested and used the tool by running it on CLI with
jshint <path>
. JSHint is a static analysis tool that catches suspicious usage that can cause problems in code such as syntax, implicit type conversion, global variable leaking, and more, was designed to be reduce friction of development in javascript.The following screenshot is from running
jshint src/
It does not include all the errors as there are 26249 errors in src folder but gives an idea into what types of errors the tool catches and how it is utilized.
Questions
What types of problems are you hoping your tooling will catch? What types of problems does this particular tool catch?
What types of customization are possible or necessary?
How can/should this tool be integrated into a development process?
Are there many false positives? False negatives? True positive reports about things you don’t care about?