Skip to content

CatchOnlySystemExceptionAnalyzer #5306

CatchOnlySystemExceptionAnalyzer

CatchOnlySystemExceptionAnalyzer #5306

Triggered via pull request February 7, 2025 08:48
Status Failure
Total duration 2m 4s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 20 warnings
Test: src/Neo.SmartContract.Analyzer/CatchOnlySystemExceptionAnalyzer.cs#L79
'SyntaxNode' does not contain a definition for 'FndNode' and no accessible extension method 'FndNode' accepting a first argument of type 'SyntaxNode' could be found (are you missing a using directive or an assembly reference?)
Test: src/Neo.SmartContract.Analyzer/CatchOnlySystemExceptionAnalyzer.cs#L79
'SyntaxNode' does not contain a definition for 'FndNode' and no accessible extension method 'FndNode' accepting a first argument of type 'SyntaxNode' could be found (are you missing a using directive or an assembly reference?)
Test
Process completed with exit code 1.
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/TokenContract.cs#L43
Possible null reference argument for parameter 'text' in 'ByteString.explicit operator BigInteger(ByteString text)'.
Test: src/Neo.SmartContract.Framework/Services/Transaction.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/Services/Transaction.cs#L19
Non-nullable field 'Sender' 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/Services/Transaction.cs#L23
Non-nullable field 'Script' 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/Services/Notification.cs#L19
Non-nullable field 'ScriptHash' 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/Services/Notification.cs#L24
Non-nullable field 'EventName' 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/CollectionTypesUsageAnalyzer.cs#L31
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/CollectionTypesUsageAnalyzer.cs#L31
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/InitialValueAnalyzer.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/InitialValueAnalyzer.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)
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/RefKeywordUsageAnalyzer.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/RefKeywordUsageAnalyzer.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/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)