diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index fb85bcb..5f49f8c 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -34,8 +34,10 @@ test: reports: junit: - ./**/*test-result.xml - cobertura: ./**/coverage.cobertura.xml - + coverage_report: + coverage_format: cobertura + path: ./**/coverage.cobertura.xml + # will enable when GitLab allows it to work #sast: # stage: security-test diff --git a/Desu.ExampleConsole/Program.cs b/Desu.ExampleConsole/Program.cs index 868a3ed..4265acb 100644 --- a/Desu.ExampleConsole/Program.cs +++ b/Desu.ExampleConsole/Program.cs @@ -16,8 +16,8 @@ public class Program { private const bool GenerateExampleJson = false; private const bool UseAsync = true; - private static readonly Random Random = new Random(); - private static readonly Transliterator Transliterator = new Transliterator(); + private static readonly Random Random = new(); + private static readonly Transliterator Transliterator = new(); public static async Task Main() { @@ -45,7 +45,7 @@ public static async Task Main() } } - public static async Task RunAsync() + private static async Task RunAsync() { var japaneseDictionaryStopwatch = new Stopwatch(); var nameDictionaryStopwatch = new Stopwatch(); @@ -78,7 +78,7 @@ public static async Task RunAsync() } } - public static void RunSync() + private static void RunSync() { var japaneseDictionaryStopwatch = new Stopwatch(); var nameDictionaryStopwatch = new Stopwatch(); @@ -165,12 +165,12 @@ private static void OutputRandomJapaneseEntry(IReadOnlyList japa OutputEndEntry(); } - - private static void OutputStartEntry() => OutputLine("------------------------------"); - + + private static void OutputLineBreak() => OutputLine("------------------------------"); + private static void OutputStartEntry() => OutputLineBreak(); private static void OutputEndEntry() { - OutputLine("------------------------------"); + OutputLineBreak(); OutputLine(string.Empty); Console.ReadKey(); } diff --git a/Desu.ExampleWpf/MainWindow.xaml b/Desu.ExampleWpf/MainWindow.xaml index 67ffc2f..7bc0abe 100644 --- a/Desu.ExampleWpf/MainWindow.xaml +++ b/Desu.ExampleWpf/MainWindow.xaml @@ -7,7 +7,7 @@ DataContext="{Binding RelativeSource={RelativeSource Self}}" Title="MainWindow" Height="350" Width="525"> - + @@ -31,6 +31,6 @@ -