Skip to content

Example of using codehawk-cli on a Next.js project

License

Notifications You must be signed in to change notification settings

sgb-io/codehawk-cli-example

Repository files navigation

Codehawk CLI Example

This shows an example way to use the Codehawk CLI. In this example, we analyse the Next.js starter app.

  1. yarn
  2. yarn codehawk
  3. 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                           |

Minimum Threshold

See the Example PR for how you can use the minimumThreshold option in your CI.

Badges

Here are the badges for this project:

Average Maintainability Worst Maintainability

About

Example of using codehawk-cli on a Next.js project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published