Test: Added Jshint (Static Analysis) #95
Open
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.
JSHINT STATIC ANALYSIS TOOL RESULTS
jshintStrengths: Catching simple syntactic code bugs that could have led to hours of debugging
Weakness: Doesn't check for correctness, complexity, or memory leaks.
- What types of problems are you hoping your tooling will catch? What types of problems does this particular tool catch?
JSHINT catches suspicious usage within the javascript files. I'm hoping the tool will catch:
What it actually catches:
- What types of customization are possible or necessary?
Through the .jshintrc configuration file, it is possible to customize/disable some rules. For example, I would definitely disable the redundant variables warning, since this is a majority of the errors and it seems to be pointing out the
use strictdirective or util that is defined the same way throughout each file, but not something I should change.- How can/should this tool be integrated into a development process?
Catching possible common bugs, syntax errors, and unnecessary/unused variables in a large codebase that could have led to hours of debugging.
- Are there many false positives? False negatives? True positive reports about things you don’t care about?
use strictdirective the same way across different files that you don't necessarily want to get rid of)