0.1.5 • Published 9 years ago
ca4js v0.1.5
#ca4js
static code analyzer for javascript
##Installation
ca4js can be installed for Node using npm
Using npm:
npm install ca4js -g
Full cli option list:
Usage: ca4js [file] [options]
file file containing code
Options:
-v, --version print version and exit
##Code Analysis
###Correctness
- Infinite for loop
- Possible division by zero
- Expression is always true or false
- Control flow conditions are identical
- Contradicting conditions were encountered
- Redundant cast to bool
- Function returns values of different types
- Function always returns the same values
- Do not compare with NaN
- Remove unreachable code
- Useless comparison to typeof
- Contradicting conditions were encountered
- Bad constructor invocation
- Conditional expression returns the same value