-
Notifications
You must be signed in to change notification settings - Fork 266
[BUG] No error code returned for technical-debt metric #770
Comments
@NickBalnaves can you provide full cli command with |
@dkrutskikh Just noticed using the noted level returns an error code when there is an alarm: |
On further inspection |
@dkrutskikh @incendial any idea? Bit annoying since it avoids enforcing these rules during CI checks |
@NickBalnaves sorry for long response. I think set if (value > warningLevel * 2) {
return MetricValueLevel.alarm;
} else if (value > warningLevel) {
return MetricValueLevel.warning;
} else if (value > warningLevel * 0.8) {
return MetricValueLevel.noted;
} You can faced |
@dkrutskikh thanks for that information, there is still a problem with the warning level not returning an error code though? |
Facing the same issue. I've got a threshold set for tech debt and no error is returned even though its being exceeded. I've got the following turned as well, so I expect that if treshhold is being exceeded that my commit has failed the checks but it shows me a green check every time 😢:
|
Please show your full configuration:
Configuration
What did you do? Please include the source code example causing the issue.
What did you expect to happen?
The above command to return an error code when using an ignore rule comment.
What actually happened?
There was an alarm raised for technical debt but no error code was returned. Even when setting
--set-exit-on-violation-level
there is no error code returned.Are you willing to submit a pull request to fix this bug?
No
The text was updated successfully, but these errors were encountered: