Add a SonarQube configuration file to implement static code analysis. #11
sonarqube.yaml
on: pull_request
static-code-analysis
4m 9s
Annotations
10 errors and 12 warnings
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.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_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:
src/AElf.Runtime.CSharp.Core/SdkStreamManager.cs#L20
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
|
static-code-analysis:
src/AElf.Types/Protobuf/FileDescriptorExtensions.cs#L10
'FileDescriptor.CustomOptions' is obsolete: 'CustomOptions are obsolete. Use the GetOptions() method.'
|
static-code-analysis:
src/AElf.Types/Types/Address.cs#L36
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
|
static-code-analysis:
src/AElf.Types/Helper/HashHelper.cs#L8
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
static-code-analysis:
src/AElf.Types/Types/Address.cs#L7
When implementing IComparable<T>, you should also override <= and >=. (https://rules.sonarsource.com/csharp/RSPEC-1210)
|
static-code-analysis:
src/AElf.Types/Types/Hash.cs#L11
When implementing IComparable<T>, you should also override <= and >=. (https://rules.sonarsource.com/csharp/RSPEC-1210)
|
static-code-analysis:
src/AElf.Types/Types/BigIntValue.cs#L9
When implementing IComparable or IComparable<T>, you should also override == and !=. (https://rules.sonarsource.com/csharp/RSPEC-1210)
|
static-code-analysis:
src/AElf.Types/Extensions/ByteExtensions.cs#L41
Do not update the loop counter 'cx' within the loop body. (https://rules.sonarsource.com/csharp/RSPEC-127)
|
static-code-analysis:
src/AElf.Types/Base58.cs#L50
Use a StringBuilder instead. (https://rules.sonarsource.com/csharp/RSPEC-1643)
|
static-code-analysis:
src/AElf.Types/Base58.cs#L54
Use a StringBuilder instead. (https://rules.sonarsource.com/csharp/RSPEC-1643)
|