Skip to content

[ISSUE #8206] Adopt Divide Rule contracts with Admin and gateway parity #129

[ISSUE #8206] Adopt Divide Rule contracts with Admin and gateway parity

[ISSUE #8206] Adopt Divide Rule contracts with Admin and gateway parity #129

Triggered via pull request November 22, 2026 16:49
Status Success
Total duration 18s
Artifacts –

new-code-quality.yml

on: pull_request
added-lines
14s
added-lines
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
added-lines
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-java@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
New code quality Q1: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/DivideRuleContract.java#L119
[Q1] '100L' is a magic number. Reuse an existing constant or declare a named constant with its unit.
New code quality Q5: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/DivideRuleContract.java#L114
[Q5] More than 5 parameters (found 7). Group related parameters into a value object.
New code quality Q2: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/DivideRuleContract.java#L95
[Q2] The string "canary.percentage" appears 3 times in this file. Extract it into a constant.
New code quality Q2: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/DivideRuleContract.java#L94
[Q2] The string "canary.matchMode" appears 3 times in this file. Extract it into a constant.
New code quality Q2: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/DivideRuleContract.java#L84
[Q2] The string "0" appears 4 times in this file. Extract it into a constant.
New code quality Q4: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/DivideRuleContract.java#L66
[Q4] Boolean expression complexity is 4 (max allowed is 3). Extract named conditions.
New code quality Q3: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/DivideRuleContract.java#L49
[Q3] Cyclomatic complexity is 11 (max allowed for new code is 10). Extract branches into methods.
New code quality Q2: shenyu-common/src/main/java/org/apache/shenyu/common/config/contract/ConfigurationValidationException.java#L30
[Q2] The string " " appears 3 times in this file. Extract it into a constant.
added-lines
setup-java v4 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.