Skip to content

Commit be3ec0d

Browse files
Enable nullable (#2392)
* Enable nullable * Several nullable fixes * Fix dot-dsl * calculator-conundrum: fix nullable * developer-privileges: fix nullable * face-id2: fix * zebra-puzzle: fix * pov: fix * zipper: fix * tournament: fix * simple-linked-list: fix * sgf-parsing: fix * rest-api: fix * react: fix * robot-name: fix * say: fix * satellite: fix * change: fix * custom-set: fix * grep: fix * binary-search-tree: fix * linked-list: fix * alphametics: fix * hangman: fix * wizards-and-warriors-2: fix * remote-control-cleanup: fix * land-grab-in-space: fix * instruments-of-texas: fix * markdown: fix * Dont remove nullable in new exercise * More fixes * remote-control: fix [no important files changed]
1 parent 0288386 commit be3ec0d

File tree

219 files changed

+439
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+439
-244
lines changed

bin/add-practice-exercise.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ $project = "${exerciseDir}/${ExerciseName}.csproj"
3939
[xml]$projectXml = Get-Content "${project}"
4040
$projectXml.Project.RemoveChild($projectXml.Project.ItemGroup[1])
4141
$projectXml.Project.PropertyGroup.RemoveChild($projectXml.Project.PropertyGroup.SelectSingleNode("ImplicitUsings"))
42-
$projectXml.Project.PropertyGroup.RemoveChild($projectXml.Project.PropertyGroup.SelectSingleNode("Nullable"))
4342
$projectXml.Save("${project}")
4443

4544
# Update project packages

exercises/concept/annalyns-infiltration/AnnalynsInfiltration.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
67
</PropertyGroup>
78

exercises/concept/attack-of-the-trolls/AttackOfTheTrolls.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
67
</PropertyGroup>
78

exercises/concept/authentication-system/AuthenticationSystem.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
67
</PropertyGroup>
78

exercises/concept/beauty-salon-goes-global/BeautySalonGoesGlobal.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
67
</PropertyGroup>
78

exercises/concept/bird-watcher/BirdWatcher.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
67
</PropertyGroup>
78

exercises/concept/booking-up-for-beauty/BookingUpForBeauty.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
67
</PropertyGroup>
78

exercises/concept/building-telemetry/BuildingTelemetry.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
67
</PropertyGroup>
78

exercises/concept/calculator-conundrum/.meta/Exemplar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public static class SimpleCalculator
44
{
5-
public static string Calculate(int operand1, int operand2, string operation)
5+
public static string Calculate(int operand1, int operand2, string? operation)
66
{
77
int result;
88
try

exercises/concept/calculator-conundrum/CalculatorConundrum.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public static class SimpleCalculator
44
{
5-
public static string Calculate(int operand1, int operand2, string operation)
5+
public static string Calculate(int operand1, int operand2, string? operation)
66
{
77
throw new NotImplementedException("Please implement the SimpleCalculator.Calculate() method");
88
}

0 commit comments

Comments
 (0)