Skip to content

Push on main

Push on main #9

Triggered via dynamic December 20, 2024 04:29
Status Success
Total duration 1m 58s
Artifacts

codeql

on: dynamic
Matrix: analyze
Fit to window
Zoom out
Zoom in

Annotations

128 warnings and 380 notices
Analyze (csharp)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Async function without await expression: samples/StoryblokSharpExample/Program.cs#L29
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Async function without await expression: src/StoryblokSharp/Http/StoryblokHttpClient.cs#L215
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Non-nullable member is uninitialized.: src/StoryblokSharp/Services/RichText/HtmlSanitizer.cs#L27
Non-nullable field '_allowedTags' is uninitialized. Consider declaring the field as nullable.
Non-nullable member is uninitialized.: samples/StoryblokSharpExample/Program.cs#L306
Non-nullable property 'Component' is uninitialized. Consider declaring the property as nullable.
Non-nullable member is uninitialized.: samples/StoryblokSharpExample/Program.cs#L300
Non-nullable property 'Uid' is uninitialized. Consider declaring the property as nullable.
Non-nullable member is uninitialized.: samples/StoryblokSharpExample/Program.cs#L303
Non-nullable property 'Body' is uninitialized. Consider declaring the property as nullable.
Nullability of reference types in source type doesn't match target type.: tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L46
Nullability of reference types in value of type 'System.Collections.Generic.List' does not match target type 'System.Collections.Generic.IEnumerable?'
Nullability of reference types in source type doesn't match target type.: tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L80
Nullability of reference types in value of type 'System.Collections.Generic.List' does not match target type 'System.Collections.Generic.IEnumerable?'
Namespace does not correspond to file location: src/StoryblokSharp/Models/Client/Story.cs#L1
Namespace does not correspond to file location, must be: 'StoryblokSharp.Models.Client'
Namespace does not correspond to file location: tests/StoryblokSharptTests/Services/DefaultRichTextSchemaTests.cs#L5
Namespace does not correspond to file location, must be: 'StoryblokSharptTests.Services'
Namespace does not correspond to file location: tests/StoryblokSharptTests/Services/Richtext/NodeResolvers/NodeResolverTests.cs#L9
Namespace does not correspond to file location, must be: 'StoryblokSharptTests.Services.Richtext.NodeResolvers'
Namespace does not correspond to file location: src/StoryblokSharp/Models/Json/DownloadImageSrcConverter.cs#L4
Namespace does not correspond to file location, must be: 'StoryblokSharp.Models.Json'
Namespace does not correspond to file location: src/StoryblokSharp/Models/RichText/IComponentRenderer.cs#L4
Namespace does not correspond to file location, must be: 'StoryblokSharp.Models.RichText'
Namespace does not correspond to file location: src/StoryblokSharp/Models/RichText/RichTextOptions.cs#L4
Namespace does not correspond to file location, must be: 'StoryblokSharp.Models.RichText'
Namespace does not correspond to file location: samples/StoryblokSharpExample/Program.cs#L13
Namespace does not correspond to file location, must be: 'StoryblokSharpExample'
Namespace does not correspond to file location: src/StoryblokSharp/Models/Client/StoryResponse.cs#L3
Namespace does not correspond to file location, must be: 'StoryblokSharp.Models.Client'
Namespace does not correspond to file location: tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L5
Namespace does not correspond to file location, must be: 'StoryblokSharptTests.Services.Richtext'
Namespace does not correspond to file location: src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L7
Namespace does not correspond to file location, must be: 'StoryblokSharp.Services.RichText'
Namespace does not correspond to file location: src/StoryblokSharp/Components/IComponentResolver.cs#L2
Namespace does not correspond to file location, must be: 'StoryblokSharp.Components'
Namespace does not correspond to file location: src/StoryblokSharp/Models/RichText/INodeResolver.cs#L3
Namespace does not correspond to file location, must be: 'StoryblokSharp.Models.RichText'
Namespace does not correspond to file location: tests/StoryblokSharptTests/Client/Client.cs#L12
Namespace does not correspond to file location, must be: 'StoryblokSharptTests.Client'
Namespace does not correspond to file location: src/StoryblokSharp/Components/BlazorComponentResolver .cs#L8
Namespace does not correspond to file location, must be: 'StoryblokSharp.Components'
Collection content is never queried (private accessibility): tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L15
Content of collection '_componentResolvers' is only updated but never used
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Services/RichText/RichTextRenderer.cs#L62
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Services/RichText/NodeResolvers/ImageNodeResolver.cs#L27
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Services/RichText/RichTextRenderer.cs#L68
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L30
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L113
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L83
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Services/RichText/NodeResolvers/BlockNodeResolver.cs#L30
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Services/RichText/NodeResolvers/MarkNodeResolver.cs#L102
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L60
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Services/RichText/RichTextRenderer.cs#L30
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Utilities/RichText/AttributeUtilities.cs#L76
Conditional access qualifier expression is never null according to nullable reference types' annotations
Conditional access qualifier expression is not null according to nullable reference types' annotations: src/StoryblokSharp/Services/RichText/RichTextRenderer.cs#L147
Conditional access qualifier expression is never null according to nullable reference types' annotations
Use null check pattern instead of a type check succeeding on any not-null value: src/StoryblokSharp/Components/BaseComponentResolver.cs#L101
Use not null pattern instead of a type check succeeding on any not-null value
'GC.SuppressFinalize' is invoked for type without destructor: src/StoryblokSharp/Client/StoryblokClient.cs#L357
'GC.SuppressFinalize' is invoked for type without destructor
Invalid XML documentation comment: src/StoryblokSharp/Models/Json/BooleanOrStringConverter.cs#L4
XML comment is not placed on a valid language element
Unresolved file references: src/StoryblokSharp/README.md#L358
Cannot resolve symbol 'CONTRIBUTING.md'
Unresolved file references: src/StoryblokSharp/README.md#L406
Cannot resolve symbol 'LICENSE'
Unresolved file references: src/StoryblokSharp/README.md#L402
Cannot resolve symbol 'CONTRIBUTING.md'
Unresolved file references: src/StoryblokSharp/README.md#L362
Cannot resolve symbol 'LICENSE'
Non-accessed field (private accessibility): src/StoryblokSharp/Utilities/RichText/StringBuilderCache.cs#L14
Field '_maxPoolSize' is assigned but its value is never used
Non-accessed field (private accessibility): src/StoryblokSharp/Services/RichText/HtmlSanitizer.cs#L17
Field '_allowedProtocols' is assigned but its value is never used
Non-accessed field (private accessibility): tests/StoryblokSharptTests/Services/Richtext/RichTextRendererTests.cs#L12
Field '_imageResolver' is assigned but its value is never used
Non-accessed field (private accessibility): src/StoryblokSharp/Utilities/ThrottleQueue.cs#L10
Field '_limit' is assigned but its value is never used
Non-accessed field (private accessibility): src/StoryblokSharp/Services/RichText/RichTextRenderer.cs#L12
Field '_imageResolver' is assigned but its value is never used
Non-accessed field (private accessibility): src/StoryblokSharp/Utilities/RichText/StringBuilderCache.cs#L15
Field '_initialCapacity' is assigned but its value is never used
'??' condition is never null according to nullable reference types' annotations: src/StoryblokSharp/Components/BaseComponentResolver.cs#L65
'??' left operand is never null according to nullable reference types' annotations
Private field can be converted into local variable: tests/StoryblokSharptTests/Services/Richtext/NodeResolvers/NodeResolverTests.cs#L103
The field is always assigned before being used and can be converted into a local variable
Private field can be converted into local variable: tests/StoryblokSharptTests/Client/Client.cs#L19
The field is always assigned before being used and can be converted into a local variable
Private field can be converted into local variable: tests/StoryblokSharptTests/Client/Client.cs#L20
The field is always assigned before being used and can be converted into a local variable
Private field can be converted into local variable: src/StoryblokSharp/Client/StoryblokClient.cs#L20
The field is always assigned before being used and can be converted into a local variable
Redundant member initializer: src/StoryblokSharp/Models/Configuration/StoryblokOptions.cs#L38
Initializing property by default value is redundant
Redundant using directive: tests/StoryblokSharptTests/Client/Client.cs#L8
Using directive is not required by the code and can be safely removed
Unassigned readonly field: src/StoryblokSharp/Services/RichText/HtmlSanitizer.cs#L13
Readonly field '_allowedTags' is never assigned
Auto-property accessor is never used (private accessibility): src/StoryblokSharp/Services/RichText/HtmlSanitizer.cs#L208
Auto-property accessor 'AttributeEncodingDelegate.set' is never used
Use explicit or implicit modifier definition for type members: samples/StoryblokSharpExample/Program.cs#L15
Inconsistent modifiers style: missing 'private' modifier
Use explicit or implicit modifier definition for type members: samples/StoryblokSharpExample/Program.cs#L162
Inconsistent modifiers style: missing 'private' modifier
Use explicit or implicit modifier definition for type members: samples/StoryblokSharpExample/Program.cs#L29
Inconsistent modifiers style: missing 'private' modifier
Use explicit or implicit modifier definition for type members: samples/StoryblokSharpExample/Program.cs#L260
Inconsistent modifiers style: missing 'private' modifier
Use explicit or implicit modifier definition for type members: samples/StoryblokSharpExample/Program.cs#L208
Inconsistent modifiers style: missing 'private' modifier
Use explicit or implicit modifier definition for type members: samples/StoryblokSharpExample/Program.cs#L130
Inconsistent modifiers style: missing 'private' modifier
Cast expression can be replaced with lambda return type: src/StoryblokSharp/Services/RichText/DefaultRichTextSchema.cs#L64
Cast expression can be replaced with statically typed language construct
Convert 'if' statement into 'switch': src/StoryblokSharp/Services/RichText/RichTextRenderer.cs#L93
Convert 'if' statement into 'switch' statement
Convert 'if' statement into 'switch': src/StoryblokSharp/Utilities/RichText/HtmlUtilities.cs#L98
Convert 'if' statement into 'switch' statement
Foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used: src/StoryblokSharp/Utilities/RichText/HtmlUtilities.cs#L36
Loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used
Part of foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used: src/StoryblokSharp/Services/RichText/RichTextRenderer.cs#L152
Part of loop's body can be converted into LINQ-expression but another 'GetEnumerator' method will be used
Part of foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used: src/StoryblokSharp/Utilities/RichText/HtmlUtilities.cs#L156
Part of loop's body can be converted into LINQ-expression but another 'GetEnumerator' method will be used
Invert 'if' statement to reduce nesting: samples/StoryblokSharpExample/Program.cs#L194
Invert 'if' statement to reduce nesting
Invert 'if' statement to reduce nesting: src/StoryblokSharp/Utilities/JsonHelper.cs#L51
Invert 'if' statement to reduce nesting
Type member is never used (non-private accessibility): src/StoryblokSharp/Services/RichText/RichTextExtensions.cs#L14
Method 'ToRichTextContent' is never used (except inside its declaration)
Type member is never used (non-private accessibility): src/StoryblokSharp/Utilities/StoryblokHelpers.cs#L52
Method 'Stringify' is never used (except inside its declaration)
Unused parameter (non-private accessibility): src/StoryblokSharp/Client/IStoryblokClient.cs#L31
Parameter 'entity' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/Cache/IStoryblokCache.cs#L26
Parameter 'cancellationToken' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/Cache/IStoryblokCache.cs#L34
Parameter 'cancellationToken' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/Cache/IStoryblokCache.cs#L15
Parameter 'cancellationToken' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L17
Parameter 'schema' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L27
Parameter 'componentClass' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L12
Parameter 'options' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L22
Parameter 'schema' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L17
Parameter 'key' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L22
Parameter 'key' is not used in any of the implementations
Unused parameter (non-private accessibility): src/StoryblokSharp/Services/RichText/IRichTextRenderer.cs#L27
Parameter 'componentType' is not used in any of the implementations
Type is never used (non-private accessibility): src/StoryblokSharp/Configuration/StoryblokClientBuilder.cs#L18
Class 'StoryblokClientBuilder' is never used (except inside its declaration)
Type is never used (non-private accessibility): src/StoryblokSharp/Models/Json/FlexibleNumberConverter.cs#L37
Class 'FlexibleNullableNumberConverter' is never used