This shows an example way to use the Codehawk CLI. In this example, we analyse the Next.js starter app.
yarn
yarn codehawk
- You will get some output:
Codehawk Static Analysis Results
Top 4 files
| File | # of Lines | Times Used/Depended On | Maintainability (higher is better) |
| ------------------------------ | ---------- | ---------------------- | ---------------------------------- |
| complex-utils.js | 99 | 1 | 50.76 (Could be better) |
| typescript-sample.ts | 11 | 1 | 70.73 OK |
| index.js | 209 | 1 | 89.94 OK |
| hello.js | 6 | 1 | 91.93 OK |
See the Example PR for how you can use the minimumThreshold
option in your CI.
Here are the badges for this project: