Skip to content

Fix: some compiler warnings #5285

Fix: some compiler warnings

Fix: some compiler warnings #5285

Triggered via pull request January 30, 2025 00:17
Status Success
Total duration 4m 18s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 warnings
Test: src/Neo.SmartContract.Framework/Native/GAS.cs#L28
Cannot convert null literal to non-nullable reference type.
Test: src/Neo.SmartContract.Framework/Native/NEO.cs#L29
Cannot convert null literal to non-nullable reference type.
Test: src/Neo.SmartContract.Framework/Services/Runtime.cs#L96
Cannot convert null literal to non-nullable reference type.
Test: src/Neo.SmartContract.Framework/TokenContract.cs#L37
Possible null reference argument for parameter 'text' in 'ByteString.explicit operator BigInteger(ByteString text)'.
Test: src/Neo.SmartContract.Framework/Native/WitnessRule.cs#L17
Non-nullable field 'Condition' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/AndCondition.cs#L16
Non-nullable field 'Expressions' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/CalledByContractCondition.cs#L16
Non-nullable field 'Hash' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/CalledByGroupCondition.cs#L16
Non-nullable field 'Group' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/GroupCondition.cs#L16
Non-nullable field 'Group' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/NeoAccountState.cs#L20
Non-nullable field 'VoteTo' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Analyzer/BanCastMethodAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/BanCastMethodAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
Test: src/Neo.SmartContract.Analyzer/DecimalUsageAnalyzer.cs#L28
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/DecimalUsageAnalyzer.cs#L28
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
Test: src/Neo.SmartContract.Analyzer/KeywordUsageAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/KeywordUsageAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
Test: src/Neo.SmartContract.Analyzer/LinqUsageAnalyzer.cs#L26
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/LinqUsageAnalyzer.cs#L26
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
Test: src/Neo.SmartContract.Analyzer/BigIntegerCreationAnalyzer.cs#L27
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/BigIntegerCreationAnalyzer.cs#L27
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)