Add SonarQube config #1
sonarqube.yaml
on: pull_request
static-code-analysis
1m 52s
Annotations
10 errors and 12 warnings
static-code-analysis:
contract/Forest.Contracts.Auction/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.Auction/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.Auction/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.Auction/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.Auction/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.Auction/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.Auction/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.Auction/Protobuf/Generated/TokenContract.g.cs#L10604
'MapField<string, int>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<string, int>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.Auction/Protobuf/Generated/TokenContract.g.cs#L10605
'MapField<int, Address>' does not contain a definition for 'MergeFrom' and no accessible extension method 'MergeFrom' accepting a first argument of type 'MapField<int, Address>' could be found (are you missing a using directive or an assembly reference?)
|
static-code-analysis:
contract/Forest.Contracts.Auction/Protobuf/Generated/TokenContract.g.cs#L4879
'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 acs4.proto is unused.
|
static-code-analysis
Import acs4.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.Auction/AuctionContract_Auction.cs#L156
Define a constant instead of using this literal 'Auction' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
static-code-analysis:
contract/Forest.Contracts.Auction/AuctionContract.cs#L56
'input' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)
|
static-code-analysis:
contract/Forest.Contracts.Auction/AuctionContract.cs#L84
'input' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)
|
static-code-analysis:
contract/Forest.Contracts.Auction/AuctionContract_Auction.cs#L38
'input' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)
|
static-code-analysis:
contract/Forest.Contracts.Auction/AuctionContract_Auction.cs#L44
'auctionInfo' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)
|
static-code-analysis:
contract/Forest.Contracts.Auction/AuctionContract_Auction.cs#L62
'input' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)
|
static-code-analysis:
contract/Forest.Contracts.Auction/AuctionContract_Auction.cs#L66
'auctionInfo' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259)
|