Add Rider files, apply Rider suggestions

This commit is contained in:
2022-11-30 17:39:40 -06:00
parent 23945154d4
commit d725a9e52e
5 changed files with 34 additions and 9 deletions

13
.idea/.idea.advent-of-code-2022/.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/.idea.advent-of-code-2022.iml
/modules.xml
/projectSettingsUpdater.xml
/contentModel.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -32,14 +32,8 @@ foreach (var arg in args)
if (runPart1 != null || runPart2 != null)
{
if (runPart1 == null)
{
runPart1 = false;
}
if (runPart2 == null)
{
runPart2 = false;
}
runPart1 ??= false;
runPart2 ??= false;
}
if (runAll)
@ -59,7 +53,7 @@ else
}
else
{
var type = types.FirstOrDefault(x => x.Name == $"Day{desiredDay?.PadLeft(2, '0')}");
var type = types.FirstOrDefault(x => x.Name == $"Day{desiredDay.PadLeft(2, '0')}");
if (type == null)
{
Logger.Log($"Unknown day <cyan>{desiredDay}<r>");