Add SonarQube config #11
sonarqube.yaml
on: pull_request
static-code-analysis
1m 55s
Annotations
10 errors and 12 warnings
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/SymbolRegistrarContract.g.cs#L4061
'MapField<string, string>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, string>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L13732
'MapField<string, long>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, long>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L13516
'MapField<string, TransactionFeeDelegations>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, TransactionFeeDelegations>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L13316
'MapField<string, long>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, long>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/Acs0.g.cs#L5460
'MapField<long, ContractCodeHashList>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<long, ContractCodeHashList>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L12423
'MapField<string, long>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, long>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L1162
'MapField<string, string>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, string>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L11691
'MapField<string, long>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, long>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L5060
'MapField<string, long>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, long>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/Protobuf/Generated/TokenContract.g.cs#L4678
'MapField<string, long>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, long>' could be found (are you missing a using directive or 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 transaction_fee.proto is unused.
|
static-code-analysis
Import transaction_fee.proto is unused.
|
static-code-analysis
Import transaction_fee.proto is unused.
|
static-code-analysis
Import transaction_fee.proto is unused.
|
static-code-analysis:
src/AElf.Boilerplate.SystemTransactionGenerator/TransactionGeneratingService.cs#L56
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/SymbolRegistrarContractConstants.cs#L3
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/SymbolRegistrarContract_Helper.cs#L92
Remove the unused private method 'GetDefaultParliamentController'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/SymbolRegistrarContract_Admin.cs#L79
Define a constant instead of using this literal 'Invalid param' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/SymbolRegistrarContract_Admin.cs#L151
Define a constant instead of using this literal 'Price token ' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
static-code-analysis:
contract/Forest.Contracts.SymbolRegistrar/SymbolRegistrarContract_Admin.cs#L151
Define a constant instead of using this literal ' not exists' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|