Rename
editorconfig
This commit is contained in:
@ -14,7 +14,7 @@ internal abstract class RelationLogic
|
||||
{
|
||||
List<LocationContainer<MetadataExtractor.Directory>>? collection;
|
||||
Dictionary<int, List<LocationContainer<MetadataExtractor.Directory>>>? yearTo;
|
||||
Dictionary<long, Dictionary<int, List<LocationContainer<MetadataExtractor.Directory>>>> personKeyTo = new();
|
||||
Dictionary<long, Dictionary<int, List<LocationContainer<MetadataExtractor.Directory>>>> personKeyTo = [];
|
||||
foreach (LocationContainer<MetadataExtractor.Directory> locationContainer in locationContainers)
|
||||
{
|
||||
if (!locationContainer.FromDistanceContent)
|
||||
@ -23,13 +23,13 @@ internal abstract class RelationLogic
|
||||
continue;
|
||||
if (!personKeyTo.TryGetValue(locationContainer.PersonKey, out yearTo))
|
||||
{
|
||||
personKeyTo.Add(locationContainer.PersonKey, new());
|
||||
personKeyTo.Add(locationContainer.PersonKey, []);
|
||||
if (!personKeyTo.TryGetValue(locationContainer.PersonKey, out yearTo))
|
||||
throw new Exception();
|
||||
}
|
||||
if (!yearTo.TryGetValue(locationContainer.CreationDateOnly.Year, out collection))
|
||||
{
|
||||
yearTo.Add(locationContainer.CreationDateOnly.Year, new());
|
||||
yearTo.Add(locationContainer.CreationDateOnly.Year, []);
|
||||
if (!yearTo.TryGetValue(locationContainer.CreationDateOnly.Year, out collection))
|
||||
throw new Exception();
|
||||
}
|
||||
@ -40,13 +40,13 @@ internal abstract class RelationLogic
|
||||
|
||||
private static ReadOnlyCollection<Group> GetGroups(Configuration configuration, List<LocationContainer<MetadataExtractor.Directory>> locationContainers)
|
||||
{
|
||||
List<Group> results = new();
|
||||
List<Group> results = [];
|
||||
string key;
|
||||
int lastIndex;
|
||||
List<int> years = new();
|
||||
List<int> indices = new();
|
||||
List<(int Index, int Year)> sort = new();
|
||||
List<LocationContainer<MetadataExtractor.Directory>> collection = new();
|
||||
List<int> years = [];
|
||||
List<int> indices = [];
|
||||
List<(int Index, int Year)> sort = [];
|
||||
List<LocationContainer<MetadataExtractor.Directory>> collection = [];
|
||||
KeyValuePair<int, List<LocationContainer<MetadataExtractor.Directory>>> keyValue;
|
||||
Dictionary<long, Dictionary<int, List<LocationContainer<MetadataExtractor.Directory>>>> personKeyTo = GetPersonKeyTo(configuration, locationContainers);
|
||||
foreach (KeyValuePair<long, Dictionary<int, List<LocationContainer<MetadataExtractor.Directory>>>> keyValuePair in personKeyTo)
|
||||
@ -77,7 +77,7 @@ internal abstract class RelationLogic
|
||||
if (collection.Count == 0)
|
||||
continue;
|
||||
results.Add(new(key, collection[0].PersonKey, new(collection)));
|
||||
collection = new();
|
||||
collection = [];
|
||||
years.Clear();
|
||||
}
|
||||
}
|
||||
@ -86,7 +86,7 @@ internal abstract class RelationLogic
|
||||
|
||||
private static ReadOnlyDictionary<string, string> MoveFiles(Configuration configuration, string key, bool isCounterPersonYear, string? displayDirectoryName, ReadOnlyCollection<RelationContainer> relationContainers, List<string> linked1, List<string> linked2, List<string> linked3, List<string> linked4, List<string> linked5, List<string> linked6, List<string> linked7, List<string> linked8, List<string> linked9)
|
||||
{
|
||||
Dictionary<string, string> results = new();
|
||||
Dictionary<string, string> results = [];
|
||||
string value;
|
||||
string checkFile;
|
||||
string debugFile;
|
||||
@ -231,15 +231,15 @@ internal abstract class RelationLogic
|
||||
private static ReadOnlyDictionary<string, string> GetMoveFiles(Configuration configuration, string key, int take, bool isCounterPersonYear, string? displayDirectoryName, ReadOnlyCollection<RelationContainer> relationContainers)
|
||||
{
|
||||
ReadOnlyDictionary<string, string> results;
|
||||
List<string> linked1 = new();
|
||||
List<string> linked2 = new();
|
||||
List<string> linked3 = new();
|
||||
List<string> linked4 = new();
|
||||
List<string> linked5 = new();
|
||||
List<string> linked6 = new();
|
||||
List<string> linked7 = new();
|
||||
List<string> linked8 = new();
|
||||
List<string> linked9 = new();
|
||||
List<string> linked1 = [];
|
||||
List<string> linked2 = [];
|
||||
List<string> linked3 = [];
|
||||
List<string> linked4 = [];
|
||||
List<string> linked5 = [];
|
||||
List<string> linked6 = [];
|
||||
List<string> linked7 = [];
|
||||
List<string> linked8 = [];
|
||||
List<string> linked9 = [];
|
||||
foreach ((FileHolder fileHolder, ReadOnlyCollection<Relation> relations) in relationContainers)
|
||||
{
|
||||
foreach (Relation relation in relations.Take(take))
|
||||
@ -306,7 +306,7 @@ internal abstract class RelationLogic
|
||||
string markDownFile;
|
||||
FileHolder fileHolder;
|
||||
string originalString;
|
||||
List<string> lines = new();
|
||||
List<string> lines = [];
|
||||
string fileNameWithoutExtension;
|
||||
foreach ((FileHolder relationFileHolder, ReadOnlyCollection<Relation> relations) in relationContainers)
|
||||
{
|
||||
|
Reference in New Issue
Block a user