Skip to content

[Add] ParameterValidation #62

[Add] ParameterValidation

[Add] ParameterValidation #62

Triggered via push December 8, 2024 12:17
Status Success
Total duration 1m 11s
Artifacts

CodeQuality.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build: DEH-CSV/CustomProperties/ThingTimeStampedCSVWriter.cs#L32
Rename class 'ThingTimeStampedCSVWriter' to match pascal case naming rules, consider using 'ThingTimeStampedCsvWriter'. (https://rules.sonarsource.com/csharp/RSPEC-101)
Build: DEH-CSV/Mapping/TypeMap.cs#L45
Make the 'Properties' property read-only by removing the property setter or making it private. (https://rules.sonarsource.com/csharp/RSPEC-4004)
Build: DEH-CSV/CustomProperties/ThingTimeStampPropertyEvaluator.cs#L69
Prefer using "DateTimeOffset" instead of "DateTime" (https://rules.sonarsource.com/csharp/RSPEC-6566)
Build: DEH-CSV/CustomProperties/ThingTimeStampPropertyEvaluator.cs#L69
Use a testable (date) time provider instead. (https://rules.sonarsource.com/csharp/RSPEC-6354)
Build: DEH-CSV/CsvReader.cs#L80
Refactor this method to add validation of parameter 'session' before using it. (https://rules.sonarsource.com/csharp/RSPEC-3900)
Build: DEH-CSV/CsvReader.cs#L85
Refactor this method to add validation of parameter 'stream' before using it. (https://rules.sonarsource.com/csharp/RSPEC-3900)
Build: DEH-CSV/CsvReader.cs#L97
Refactor this method to add validation of parameter 'typeMaps' before using it. (https://rules.sonarsource.com/csharp/RSPEC-3900)
Build: DEH-CSV/CsvWriter.cs#L115
Refactor this method to add validation of parameter 'maps' before using it. (https://rules.sonarsource.com/csharp/RSPEC-3900)
Build: DEH-CSV/Services/IterationReader.cs#L77
Split this method into two, one handling parameters check and the other handling the asynchronous code. (https://rules.sonarsource.com/csharp/RSPEC-4457)
Build: DEH-CSV/CsvWriter.cs#L260
Refactor this method to add validation of parameter 'typeMap' before using it. (https://rules.sonarsource.com/csharp/RSPEC-3900)