Skip to content

Add a SonarQube configuration file to implement static code analysis. #3

Add a SonarQube configuration file to implement static code analysis.

Add a SonarQube configuration file to implement static code analysis. #3

Triggered via pull request June 27, 2024 06:50
Status Failure
Total duration 4m 17s
Artifacts

sonarqube.yaml

on: pull_request
static-code-analysis
4m 7s
static-code-analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract.cs#L2
The type or namespace name 'Treasury' does not exist in the namespace 'AElf.Contracts' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_ACS11_CrossChainInformationProvider.cs#L2
The type or namespace name 'MultiToken' does not exist in the namespace 'AElf.Contracts' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_ACS1_TransactionFeeProvider.cs#L3
The type or namespace name 'Standards' does not exist in the namespace 'AElf' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_ACS1_TransactionFeeProvider.cs#L4
The type or namespace name 'Standards' does not exist in the namespace 'AElf' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_ACS4_ConsensusInformationProvider.cs#L2
The type or namespace name 'Standards' does not exist in the namespace 'AElf' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_GetConsensusCommand.cs#L3
The type or namespace name 'Standards' does not exist in the namespace 'AElf' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract.cs#L11
The type or namespace name 'AEDPoSContractImplContainer' could not be found (are you missing a using directive or an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_MaximumMinersCount.cs#L2
The type or namespace name 'Election' does not exist in the namespace 'AElf.Contracts' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_NextTerm.cs#L2
The type or namespace name 'Election' does not exist in the namespace 'AElf.Contracts' (are you missing an assembly reference?)
static-code-analysis: contract/AElf.Contracts.Consensus.AEDPoS/AEDPoSContract_NextTerm.cs#L5
The type or namespace name 'Standards' does not exist in the namespace 'AElf' (are you missing an assembly reference?)
static-code-analysis
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-java@v1, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
static-code-analysis
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v1, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
static-code-analysis
Import election_contract.proto is unused.
static-code-analysis
Import cross_chain_contract.proto is unused.
static-code-analysis: src/AElf.Core/CoreAElfModule.cs#L34
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
static-code-analysis: src/AElf.Core/CoreAElfModule.cs#L43
'T' is not used in the class. (https://rules.sonarsource.com/csharp/RSPEC-2326)
static-code-analysis: src/AElf.Core/CoreAElfModule.cs#L39
Add the 'out' keyword to parameter 'T' to make it 'covariant'. (https://rules.sonarsource.com/csharp/RSPEC-3246)
static-code-analysis: src/AElf.Core/ITaskQueue.cs#L23
Fix this implementation of 'IDisposable' to conform to the dispose pattern. (https://rules.sonarsource.com/csharp/RSPEC-3881)
static-code-analysis: src/AElf.Core/ITaskQueue.cs#L92
Fix this implementation of 'IDisposable' to conform to the dispose pattern. (https://rules.sonarsource.com/csharp/RSPEC-3881)
static-code-analysis: src/AElf.Core/AElfDefaultConventionalRegistrar.cs#L26
Merge this if statement with the enclosing one. (https://rules.sonarsource.com/csharp/RSPEC-1066)
static-code-analysis: src/AElf.Core/AElfDefaultConventionalRegistrar.cs#L25
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
static-code-analysis: src/AElf.Core/AElfDefaultConventionalRegistrar.cs#L26
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)