Skip to content

Example: violate the maintainability threshold#7

Open
sgb-io wants to merge 6 commits intomasterfrom
example/maintainability-threshold
Open

Example: violate the maintainability threshold#7
sgb-io wants to merge 6 commits intomasterfrom
example/maintainability-threshold

Conversation

@sgb-io
Copy link
Copy Markdown
Owner

@sgb-io sgb-io commented Jan 3, 2021

This PR demonstrates how codehawk-cli will cause your CI build to fail if you violate the maintainbility threshold that you have set.

This project has the minimumThreshold set to 50 (see codehawk.json). This PR causes the worst case to go below this, in turn the CLI exits with an exit code of 1.

Build output:

$ codehawk src
[codehawk-cli] Worst case (15.69100965267355) was below the minimum threshold (50)
error Command failed with exit code 1.
Error: Process completed with exit code 1.

Note: this PR needs to be closed and re-opened to re-generate the CI output after 90 days (this is the max expiry on github build logs)

@sgb-io sgb-io closed this Mar 29, 2022
@sgb-io sgb-io reopened this Mar 29, 2022
@sgb-io sgb-io closed this Jun 29, 2022
@sgb-io sgb-io reopened this Jun 29, 2022
@sgb-io sgb-io closed this Jun 29, 2022
@sgb-io sgb-io reopened this Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant