Skip to content

Commit

Permalink
style: Enable nullable across the entire project
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Dec 15, 2024
1 parent 54349c2 commit 2436d3f
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 22 deletions.
1 change: 1 addition & 0 deletions CelesteTAS-EverestInterop/CelesteTAS-EverestInterop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>TAS</RootNamespace>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>

<CelestePrefix Condition="'$(CelestePrefix)' == '' And Exists('../../../Celeste.dll')">../../..</CelestePrefix>
<CelestePrefix Condition="'$(CelestePrefix)' == ''">lib-stripped</CelestePrefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
using TAS.Module;
using TAS.Utils;

#nullable enable

namespace TAS.Communication;

public sealed class CommunicationAdapterCeleste() : CommunicationAdapterBase(Location.Celeste) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace TAS.EverestInterop.Lua;

#nullable enable

/// Provides helper methods for usage in Lua scripts
public static class LuaHelpers {
public class ValueHolder<T>(T value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

namespace TAS.EverestInterop;

#nullable enable

public static class StudioHelper {
#region Auto-filled values

Expand Down
2 changes: 0 additions & 2 deletions CelesteTAS-EverestInterop/Source/InfoHUD/InfoCustom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

namespace TAS.InfoHUD;

#nullable enable

/// Handles parsing of custom Info HUD templates
public static class InfoCustom {

Expand Down
2 changes: 0 additions & 2 deletions CelesteTAS-EverestInterop/Source/InfoHUD/TargetQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
using TAS.Module;
using TAS.Utils;

#nullable enable

namespace TAS.EverestInterop;

/// Contains all the logic for getting data from a target-query
Expand Down
2 changes: 0 additions & 2 deletions CelesteTAS-EverestInterop/Source/TAS/Input/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace TAS.Input;

#nullable enable

[Flags]
public enum ExecuteTiming : byte {
/// Executes the command while parsing inputs, like Read commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

namespace TAS.Input.Commands;

#nullable enable

public static class InvokeCommand {
private class InvokeMeta : ITasCommandMeta {
public string Insert => $"Invoke{CommandInfo.Separator}[0;Entity.Method]{CommandInfo.Separator}[1;Parameter]";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

namespace TAS.Input.Commands;

#nullable enable

// Sorts types by namespace into Celeste -> Monocle -> other (alphabetically)
// Inside the namespace it's sorted alphabetically
internal class NamespaceComparer : IComparer<(string Name, Type Type)> {
Expand Down
2 changes: 0 additions & 2 deletions CelesteTAS-EverestInterop/Source/TAS/Input/InputController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public class ParseFileEndAttribute : Attribute;
[AttributeUsage(AttributeTargets.Method), MeansImplicitUse]
public class TasFileChangedAttribute : Attribute;

#nullable enable

/// Manages inputs, commands, etc. for the current TAS file
public class InputController {
[Initialize]
Expand Down
2 changes: 0 additions & 2 deletions CelesteTAS-EverestInterop/Source/TAS/Input/InputFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

namespace TAS.Input;

#nullable enable

/// Represents a fully parsed line in a TAS file
public record InputFrame {
// Controller state
Expand Down
2 changes: 0 additions & 2 deletions CelesteTAS-EverestInterop/Source/Utils/LogUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

namespace TAS.Utils;

#nullable enable

internal static class LogUtil {
private const string Tag = "CelesteTAS";

Expand Down

0 comments on commit 2436d3f

Please sign in to comment.