mirror of
https://github.com/parnic/advent-of-code-2022.git
synced 2025-06-16 13:40:13 -05:00
Add Rider files, apply Rider suggestions
This commit is contained in:
13
.idea/.idea.advent-of-code-2022/.idea/.gitignore
generated
vendored
Normal file
13
.idea/.idea.advent-of-code-2022/.idea/.gitignore
generated
vendored
Normal 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
|
4
.idea/.idea.advent-of-code-2022/.idea/encodings.xml
generated
Normal file
4
.idea/.idea.advent-of-code-2022/.idea/encodings.xml
generated
Normal 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>
|
8
.idea/.idea.advent-of-code-2022/.idea/indexLayout.xml
generated
Normal file
8
.idea/.idea.advent-of-code-2022/.idea/indexLayout.xml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
6
.idea/.idea.advent-of-code-2022/.idea/vcs.xml
generated
Normal file
6
.idea/.idea.advent-of-code-2022/.idea/vcs.xml
generated
Normal 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>
|
12
src/main.cs
12
src/main.cs
@ -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>");
|
||||
|
Reference in New Issue
Block a user