Rename
editorconfig
This commit is contained in:
@ -66,12 +66,12 @@ public class MetadataQuery
|
||||
const bool useCeilingAverage = true;
|
||||
const string directorySearchFilter = "*";
|
||||
Dictionary<string, List<KeyValuePair<string, string>>>? dictionary;
|
||||
List<(string FileName, string Count, string TagGroup, string TagIdName, string Value)> collection = new();
|
||||
List<(string FileName, string Count, string TagGroup, string TagIdName, string Value)> collection = [];
|
||||
ProgressBarOptions options = new() { ProgressCharacter = '─', ProgressBarOnBottom = true, DisableBottomPercentage = true };
|
||||
List<string[]> filesCollection = Shared.Models.Stateless.Methods.IDirectory.GetFilesCollection(_PropertyConfiguration.RootDirectory, directorySearchFilter, fileSearchFilter, useCeilingAverage);
|
||||
foreach (string[] files in filesCollection)
|
||||
{
|
||||
if (!files.Any())
|
||||
if (files.Length == 0)
|
||||
continue;
|
||||
message = $"{ticks}) Reading files for <{files.FirstOrDefault()}> - {(int)Math.Floor(new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds)} total second(s)";
|
||||
progressBar = new(files.Length, message, options);
|
||||
@ -105,14 +105,14 @@ public class MetadataQuery
|
||||
string key;
|
||||
string line;
|
||||
List<string>? valuePairs;
|
||||
Dictionary<string, List<string>> keyValuePairs = new();
|
||||
Dictionary<string, List<string>> keyValuePairs = [];
|
||||
foreach ((string fileName, string count, string tagGroup, string tagIdName, string value) in matches)
|
||||
{
|
||||
key = $"{tagGroup}\t{tagIdName}\t{value.Trim()}";
|
||||
line = $"{tagGroup}\t{tagIdName}\t{value.Trim()}\t{count}\t{fileName}";
|
||||
if (!keyValuePairs.TryGetValue(key, out valuePairs))
|
||||
{
|
||||
keyValuePairs.Add(key, new());
|
||||
keyValuePairs.Add(key, []);
|
||||
if (!keyValuePairs.TryGetValue(key, out valuePairs))
|
||||
throw new Exception();
|
||||
}
|
||||
@ -136,7 +136,7 @@ public class MetadataQuery
|
||||
}
|
||||
}
|
||||
List<(string FileName, string Count, string TagGroup, string TagIdName, string Value)> matches = enumerable().ToList();
|
||||
if (matches.Any())
|
||||
if (matches.Count != 0)
|
||||
{
|
||||
matches.Sort();
|
||||
StringBuilder stringBuilder = new();
|
||||
|
@ -60,7 +60,7 @@ public class Program
|
||||
if (args is not null)
|
||||
Secondary(logger, args.ToList());
|
||||
else
|
||||
Secondary(logger, new List<string>());
|
||||
Secondary(logger, []);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user