editorconfig
This commit is contained in:
2023-10-20 19:37:19 -07:00
parent b54ea97c67
commit a4a92aacd2
68 changed files with 703 additions and 553 deletions

View File

@ -60,7 +60,7 @@ public class Program
if (args is not null)
Secondary(logger, args.ToList());
else
Secondary(logger, new List<string>());
Secondary(logger, []);
}
}

View File

@ -34,7 +34,7 @@ public class SetCreatedDate
_WorkingDirectory = workingDirectory;
_ConfigurationRoot = configurationRoot;
Property.Models.Configuration propertyConfiguration = Property.Models.Binder.Configuration.Get(isEnvironment, configurationRoot);
string[] directories = new string[] { propertyConfiguration.ResultContent };
string[] directories = [propertyConfiguration.ResultContent];
_FileGroups = Shared.Models.Stateless.Methods.IPath.GetKeyValuePairs(propertyConfiguration, appSettings.CopyTo, directories);
Configuration configuration = Models.Binder.Configuration.Get(isEnvironment, configurationRoot, propertyConfiguration);
_PropertyConfiguration = propertyConfiguration;
@ -65,7 +65,7 @@ public class SetCreatedDate
private List<Record> GetRecords(ProgressBar progressBar, ASCIIEncoding asciiEncoding, B_Metadata metadata, string[] files)
{
List<Record> results = new();
List<Record> results = [];
int? id;
string? message;
DateTime[] dateTimes;
@ -96,13 +96,13 @@ public class SetCreatedDate
private List<Record> GetToDoCollection(ProgressBar progressBar, List<string[]> filesCollection)
{
List<Record> results = new();
List<Record> results = [];
int minutes;
Record[] records;
List<Record> unordered;
ASCIIEncoding asciiEncoding = new();
B_Metadata metadata = new(_PropertyConfiguration);
List<Record[]> collections = new();
List<Record[]> collections = [];
foreach (string[] files in filesCollection)
{
minutes = 0;
@ -126,7 +126,7 @@ public class SetCreatedDate
private static List<string> SetCreatedDateForeach(ProgressBar progressBar, List<Record> toDoCollection)
{
List<string> results = new();
List<string> results = [];
foreach (Record record in toDoCollection)
{
progressBar.Tick();
@ -140,7 +140,7 @@ public class SetCreatedDate
private List<string> SetCreatedDateFilesInDirectories(ILogger<Program>? logger)
{
List<string> results = new();
List<string> results = [];
ProgressBar progressBar;
ConsoleKey? consoleKey = null;
const bool useCeilingAverage = true;