diff --git a/InstanceConfig.cs b/InstanceConfig.cs index b6db68b..413633a 100644 --- a/InstanceConfig.cs +++ b/InstanceConfig.cs @@ -4,7 +4,6 @@ using System.Diagnostics.CodeAnalysis; using System.Reflection; namespace RegexBot; - /// /// Contains essential instance configuration for this bot including Discord connection settings, service configuration, /// and command-line options. @@ -67,17 +66,10 @@ class InstanceConfig { return default; } - /// - /// Command line options - /// class CommandLineParameters { - [Option('c', "config", Default = null, - HelpText = "Custom path to instance configuration. Defaults to instance.json in bot directory.")] - public string ConfigFile { get; set; } = null!; + [Option('c', "config", Default = null)] + public string? ConfigFile { get; set; } = null!; - /// - /// Command line arguments parsed here. Depending on inputs, the program can exit here. - /// public static CommandLineParameters? Parse(string[] args) { CommandLineParameters? result = null; diff --git a/Services/CommonFunctions/CF_Removals.cs b/Services/CommonFunctions/CF_Removals.cs index e1052d4..1dd5126 100644 --- a/Services/CommonFunctions/CF_Removals.cs +++ b/Services/CommonFunctions/CF_Removals.cs @@ -1,4 +1,4 @@ -#pragma warning disable CA1822 // "Mark members as static" - will not make static to encourage better structure +#pragma warning disable CA1822 // "Mark members as static" - members should only be callable by code with access to this instance using Discord.Net; namespace RegexBot.Services.CommonFunctions; diff --git a/Services/EntityCache/UserCachingSubservice.cs b/Services/EntityCache/UserCachingSubservice.cs index e027b78..292ec19 100644 --- a/Services/EntityCache/UserCachingSubservice.cs +++ b/Services/EntityCache/UserCachingSubservice.cs @@ -1,4 +1,4 @@ -#pragma warning disable CA1822 // "Mark members as static" - will not make static to encourage better structure +#pragma warning disable CA1822 // "Mark members as static" - members should only be callable by code with access to this instance using Microsoft.EntityFrameworkCore; using RegexBot.Common; using RegexBot.Data;