Skip to content

Test: Linter Cleanup & Improvements (#162) #501

Test: Linter Cleanup & Improvements (#162)

Test: Linter Cleanup & Improvements (#162) #501

Triggered via push May 21, 2024 14:28
Status Success
Total duration 21m 39s
Artifacts

build.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

80 warnings
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-6.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-6.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-6.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-8.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-7.0.x: Source/HiveMQtt/Client/internal/Validator.cs#L43
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-7.0.x: Source/HiveMQtt/Client/HiveMQClientUtil.cs#L116
Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1045)
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishTest.cs#L224
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.
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L88
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L21
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L66
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)
pipeline-ubuntu-latest-dotnet-7.0.x: Tests/HiveMQtt.Test/HiveMQClient/PublishBuilderTest.cs#L44
Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0300)