style: Solution-wide code cleanup

json-serializing-nullable-fields-issue
Robert Dailey 8 months ago
parent bc5b517251
commit e0913c7a4f

@ -14,8 +14,8 @@ public class LogJanitor : ILogJanitor
public void DeleteOldestLogFiles(int numberOfNewestToKeep)
{
foreach (var file in _paths.LogDirectory.GetFiles()
.OrderByDescending(f => f.Name)
.Skip(numberOfNewestToKeep))
.OrderByDescending(f => f.Name)
.Skip(numberOfNewestToKeep))
{
file.Delete();
}

@ -7,8 +7,8 @@ public static class ConfigContextualMessages
public static string? GetContextualErrorFromException(YamlException e)
{
if (e.Message.Contains(
"Property 'reset_unmatched_scores' not found on type " +
$"'{typeof(QualityScoreConfigYaml).FullName}'"))
"Property 'reset_unmatched_scores' not found on type " +
$"'{typeof(QualityScoreConfigYaml).FullName}'"))
{
return
"Usage of 'reset_unmatched_scores' inside 'quality_profiles' under 'custom_formats' is no " +

@ -7,8 +7,8 @@ public static class SettingsContextualMessages
public static string? GetContextualErrorFromException(YamlException e)
{
if (e.Message.Contains(
"Property 'repository' not found on type " +
$"'{typeof(SettingsValues).FullName}'"))
"Property 'repository' not found on type " +
$"'{typeof(SettingsValues).FullName}'"))
{
return
"Usage of 'repository' setting is no " +

Loading…
Cancel
Save