feat: adding heimdall commands to polycli#904
Quality Gate passed
Annotations
Check warning on line 17 in cmd/heimdall/clerk/clerk.go
sonarqubecloud / SonarCloud Code Analysis
Add a comment explaining why this blank import is needed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHqlzmQ0ZWgostPl&open=AZ6ObHqlzmQ0ZWgostPl&pullRequest=904
Check warning on line 20 in cmd/heimdall/wallet/wallet.go
sonarqubecloud / SonarCloud Code Analysis
Add a comment explaining why this blank import is needed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHkTzmQ0ZWgostPL&open=AZ6ObHkTzmQ0ZWgostPL&pullRequest=904
Check failure on line 72 in cmd/heimdall/tx/msgs/execute.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHlXzmQ0ZWgostPU&open=AZ6ObHlXzmQ0ZWgostPU&pullRequest=904
Check failure on line 40 in cmd/heimdall/milestone/get.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHsMzmQ0ZWgostPx&open=AZ6ObHsMzmQ0ZWgostPx&pullRequest=904
Check failure on line 125 in scripts/capture-heimdall-fixtures.sh
sonarqubecloud / SonarCloud Code Analysis
Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObH0IzmQ0ZWgostQr&open=AZ6ObH0IzmQ0ZWgostQr&pullRequest=904
Check failure on line 19 in cmd/heimdall/wallet/sign.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHkEzmQ0ZWgostPJ&open=AZ6ObHkEzmQ0ZWgostPJ&pullRequest=904
Check failure on line 22 in cmd/heimdall/wallet/import.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 54 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHjjzmQ0ZWgostPF&open=AZ6ObHjjzmQ0ZWgostPF&pullRequest=904
Check failure on line 78 in cmd/heimdall/tx/txcmd.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHqCzmQ0ZWgostPh&open=AZ6ObHqCzmQ0ZWgostPh&pullRequest=904
Check warning on line 24 in internal/heimdall/client/rest.go
sonarqubecloud / SonarCloud Code Analysis
Rename this interface to follow Go naming conventions for single-method interfaces.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHyvzmQ0ZWgostQY&open=AZ6ObHyvzmQ0ZWgostQY&pullRequest=904
Check failure on line 132 in cmd/heimdall/milestone/votes_test.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ63OOzgA5hZo2luBX8X&open=AZ63OOzgA5hZo2luBX8X&pullRequest=904
Check warning on line 13 in cmd/heimdall/span/span.go
sonarqubecloud / SonarCloud Code Analysis
Add a comment explaining why this blank import is needed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHsCzmQ0ZWgostPw&open=AZ6ObHsCzmQ0ZWgostPw&pullRequest=904
Check failure on line 21 in cmd/heimdall/wallet/address.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHkLzmQ0ZWgostPK&open=AZ6ObHkLzmQ0ZWgostPK&pullRequest=904
Check failure on line 13 in internal/heimdall/client/fixtures_test.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 34 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHymzmQ0ZWgostQX&open=AZ6ObHymzmQ0ZWgostQX&pullRequest=904
Check failure on line 24 in cmd/heimdall/chainparams/addresses.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHs2zmQ0ZWgostP2&open=AZ6ObHs2zmQ0ZWgostP2&pullRequest=904
Check failure on line 303 in cmd/heimdall/decode/tx.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHt5zmQ0ZWgostP_&open=AZ6ObHt5zmQ0ZWgostP_&pullRequest=904
Check failure on line 144 in scripts/capture-heimdall-fixtures.sh
sonarqubecloud / SonarCloud Code Analysis
Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObH0IzmQ0ZWgostQv&open=AZ6ObH0IzmQ0ZWgostQv&pullRequest=904
Check warning on line 28 in cmd/heimdall/ops/commit.go
sonarqubecloud / SonarCloud Code Analysis
Extract this nested anonymous struct into a named type for better readability and reusability.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHidzmQ0ZWgostO9&open=AZ6ObHidzmQ0ZWgostO9&pullRequest=904
Check failure on line 16 in cmd/heimdall/span/producers.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_polygon-cli&issues=AZ6ObHrVzmQ0ZWgostPr&open=AZ6ObHrVzmQ0ZWgostPr&pullRequest=904
Check failure on line 26 in cmd/heimdall/tx/balance.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHmCzmQ0ZWgostPa&open=AZ6ObHmCzmQ0ZWgostPa&pullRequest=904
Check failure on line 57 in scripts/capture-heimdall-fixtures.sh
sonarqubecloud / SonarCloud Code Analysis
Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObH0IzmQ0ZWgostQm&open=AZ6ObH0IzmQ0ZWgostQm&pullRequest=904
Check failure on line 37 in cmd/heimdall/ops/txpool.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 47 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHhvzmQ0ZWgostO4&open=AZ6ObHhvzmQ0ZWgostO4&pullRequest=904
Check failure on line 16 in cmd/heimdall/wallet/verify.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ6ObHkazmQ0ZWgostPM&open=AZ6ObHkazmQ0ZWgostPM&pullRequest=904
Check failure on line 16 in cmd/heimdall/wallet/new_mnemonic.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_polygon-cli&issues=AZ6ObHjrzmQ0ZWgostPG&open=AZ6ObHjrzmQ0ZWgostPG&pullRequest=904
Check warning on line 57 in cmd/heimdall/validator/helpers_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_polygon-cli&issues=AZ6ObHuxzmQ0ZWgostQG&open=AZ6ObHuxzmQ0ZWgostQG&pullRequest=904
Check failure on line 18 in cmd/heimdall/validator/status.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_polygon-cli&issues=AZ6ObHvBzmQ0ZWgostQI&open=AZ6ObHvBzmQ0ZWgostQI&pullRequest=904