Skip to content

Add GetAttribute extension method for retrieving attributes from Assembly #301

Add GetAttribute extension method for retrieving attributes from Assembly

Add GetAttribute extension method for retrieving attributes from Assembly #301

Triggered via pull request December 19, 2024 00:00
Status Success
Total duration 2m 55s
Artifacts

codeql.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Analyze (csharp)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (csharp): tests/TinyHelpers.Tests/Extensions/AssemblyExtensionsTests.cs#L21
'AssemblyExtensionsTests.MyClass' is obsolete: 'This class is obsolete.'
Analyze (csharp): tests/TinyHelpers.Tests/Extensions/AssemblyExtensionsTests.cs#L24
Possible null reference argument for parameter 'assembly' in 'string? AssemblyExtensions.GetAttribute<ObsoleteAttribute>(Assembly assembly, Func<ObsoleteAttribute, string> value)'.
Analyze (csharp): samples/TinyHelpers.Sample/Program.cs#L26
'StringEnumMemberConverter' is obsolete: 'Use System.Text.Json.Serialization.JsonStringEnumMemberConverter and System.Text.Json.Serialization.JsonStringEnumMemberName instead.'
Analyze (csharp): samples/TinyHelpers.Sample/Benchmarks.cs#L11
Field 'Benchmarks.spanOptions' is never assigned to, and will always have its default value null
Analyze (csharp): samples/TinyHelpers.Sample/Benchmarks.cs#L10
Field 'Benchmarks.defaultOptions' is never assigned to, and will always have its default value null
Analyze (csharp): tests/TinyHelpers.Tests/Extensions/AssemblyExtensionsTests.cs#L21
'AssemblyExtensionsTests.MyClass' is obsolete: 'This class is obsolete.'
Analyze (csharp): tests/TinyHelpers.Tests/Extensions/AssemblyExtensionsTests.cs#L24
Possible null reference argument for parameter 'assembly' in 'string? AssemblyExtensions.GetAttribute<ObsoleteAttribute>(Assembly assembly, Func<ObsoleteAttribute, string> value)'.
Analyze (csharp): samples/TinyHelpers.Sample/Program.cs#L26
'StringEnumMemberConverter' is obsolete: 'Use System.Text.Json.Serialization.JsonStringEnumMemberConverter and System.Text.Json.Serialization.JsonStringEnumMemberName instead.'