eth/protocols/wit, consensus/bor: WIT2 — BP-signed witness announcements with transitive relay and pre-import serving #2208
Quality Gate failed
Failed conditions
4.8% Duplication on New Code (required ≤ 3%)
Annotations
Check warning on line 733 in eth/fetcher/witness_manager.go
sonarqubecloud / SonarCloud Code Analysis
Complete the task associated to this TODO comment.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ35R4yMExDLy7Wk4S9a&open=AZ35R4yMExDLy7Wk4S9a&pullRequest=2208
Check failure on line 256 in core/stateless/witness_commit_helpers_test.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ3fn_1AYRXOOU0WzXkw&open=AZ3fn_1AYRXOOU0WzXkw&pullRequest=2208
Check warning on line 74 in eth/protocols/wit/protocol_wit2_test.go
sonarqubecloud / SonarCloud Code Analysis
Remove this unnecessary variable declaration and use the expression directly in the condition.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ3fn_1VYRXOOU0WzXkx&open=AZ3fn_1VYRXOOU0WzXkx&pullRequest=2208
Check failure on line 47 in core/stateless/witness_commit.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ3fn_wyYRXOOU0WzXkv&open=AZ3fn_wyYRXOOU0WzXkv&pullRequest=2208
Check warning on line 263 in eth/fetcher/block_fetcher.go
sonarqubecloud / SonarCloud Code Analysis
This function has 16 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_bor&issues=AZ3fn_3dYRXOOU0WzXky&open=AZ3fn_3dYRXOOU0WzXky&pullRequest=2208