Skip to content

Commit 9003883

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 0deaef3 commit 9003883

File tree

219 files changed

+439
-247
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
-247
lines changed

bin/add-practice-exercise.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ $project = "${exerciseDir}/${ExerciseName}.csproj"
3535
& dotnet new xunit --force -lang "C#" --target-framework-override net9.0 -o $exerciseDir -n $ExerciseName
3636
& dotnet sln exercises/Exercises.sln add $project
3737

38-
# Cleanup project file
39-
[xml]$projectXml = Get-Content "${project}"
40-
$projectXml.Project.PropertyGroup.RemoveChild($projectXml.Project.PropertyGroup.SelectSingleNode("Nullable"))
41-
$projectXml.Save("${project}")
42-
4338
# Update project packages
4439
& dotnet remove $project package coverlet.collector
4540
& dotnet add $project package Exercism.Tests --version 0.1.0-beta1

exercises/concept/annalyns-infiltration/AnnalynsInfiltration.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
67
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
78
</PropertyGroup>
89

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
67
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
78
</PropertyGroup>
89

exercises/concept/authentication-system/AuthenticationSystem.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
67
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
78
</PropertyGroup>
89

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
67
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
78
</PropertyGroup>
89

exercises/concept/bird-watcher/BirdWatcher.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
67
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
78
</PropertyGroup>
89

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
67
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
78
</PropertyGroup>
89

exercises/concept/building-telemetry/BuildingTelemetry.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
67
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
78
</PropertyGroup>
89

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public static class SimpleCalculator
22
{
3-
public static string Calculate(int operand1, int operand2, string operation)
3+
public static string Calculate(int operand1, int operand2, string? operation)
44
{
55
int result;
66
try

exercises/concept/calculator-conundrum/CalculatorConundrum.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public static class SimpleCalculator
22
{
3-
public static string Calculate(int operand1, int operand2, string operation)
3+
public static string Calculate(int operand1, int operand2, string? operation)
44
{
55
throw new NotImplementedException("Please implement the SimpleCalculator.Calculate() method");
66
}

0 commit comments

Comments
 (0)