Skip to content

Commit 1a54dba

Browse files
Remove unused usings from example and exemplar (#2387)
* Add Xunit using include * Enable implicit usings * Remove unused usings * Remove unused usings from example and exemplar [no important files changed] * Less cleanup of test project * Use locked-mode to restore packages (#2388) * Add lock file * Use locked-mode to restore packages [no important files changed] * 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] * Fix warnings (#2391) [no important files changed] * 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] * Fix * More * Tiny fix * And more * Another * And more [no important files changed]
1 parent be3ec0d commit 1a54dba

File tree

672 files changed

+914
-1230
lines changed

Some content is hidden

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

672 files changed

+914
-1230
lines changed

bin/add-practice-exercise.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +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.RemoveChild($projectXml.Project.ItemGroup[1])
41-
$projectXml.Project.PropertyGroup.RemoveChild($projectXml.Project.PropertyGroup.SelectSingleNode("ImplicitUsings"))
42-
$projectXml.Save("${project}")
43-
4438
# Update project packages
4539
& dotnet remove $project package coverlet.collector
4640
& dotnet add $project package Exercism.Tests --version 0.1.0-beta1

exercises/concept/annalyns-infiltration/AnnalynsInfiltration.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
static class QuestLogic
42
{
53
public static bool CanFastAttack(bool knightIsAwake)

exercises/concept/annalyns-infiltration/AnnalynsInfiltration.csproj

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

10+
<ItemGroup>
11+
<Using Include="Xunit" />
12+
</ItemGroup>
13+
914
<ItemGroup>
1015
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1116
<PackageReference Include="xunit" Version="2.8.1" />

exercises/concept/annalyns-infiltration/AnnalynsInfiltrationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Xunit;
21
using Exercism.Tests;
32

43
public class AnnalynsInfiltrationTests

exercises/concept/attack-of-the-trolls/.meta/Exemplar.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
enum AccountType
42
{
53
Guest,

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
// TODO: define the 'AccountType' enum
42

53
// TODO: define the 'Permission' enum

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

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

10+
<ItemGroup>
11+
<Using Include="Xunit" />
12+
</ItemGroup>
13+
914
<ItemGroup>
1015
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1116
<PackageReference Include="xunit" Version="2.8.1" />

exercises/concept/attack-of-the-trolls/AttackOfTheTrollsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Xunit;
21
using Exercism.Tests;
32

43
public class AttackOfTheTrollsTests

exercises/concept/authentication-system/.meta/Exemplar.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using System.Collections.ObjectModel;
32

43
public class Authenticator

exercises/concept/authentication-system/AuthenticationSystem.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Collections.Generic;
2-
31
public class Authenticator
42
{
53
private class EyeColor

0 commit comments

Comments
 (0)