mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
Force newline at end of file
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
c654857bf1
commit
c8fbb65dc2
36 changed files with 38 additions and 56 deletions
|
@ -468,7 +468,7 @@ resharper_csharp_align_multiline_extends_list = false
|
|||
resharper_csharp_align_multiline_for_stmt = false
|
||||
resharper_csharp_align_multiline_parameter = false
|
||||
resharper_csharp_align_multiple_declaration = false
|
||||
resharper_csharp_insert_final_newline = false
|
||||
resharper_csharp_insert_final_newline = true
|
||||
resharper_csharp_keep_blank_lines_in_code = 1
|
||||
resharper_csharp_max_line_length = 120
|
||||
resharper_csharp_naming_rule.enum_member = AaBb
|
||||
|
@ -514,14 +514,6 @@ resharper_free_block_braces = next_line
|
|||
resharper_function_declaration_return_type_style = do_not_change
|
||||
resharper_function_definition_return_type_style = do_not_change
|
||||
resharper_generator_mode = false
|
||||
resharper_html_attribute_indent = align_by_first_attribute
|
||||
resharper_html_insert_final_newline = false
|
||||
resharper_html_linebreak_before_elements = body, div, p, form, h1, h2, h3
|
||||
resharper_html_max_blank_lines_between_tags = 2
|
||||
resharper_html_max_line_length = 120
|
||||
resharper_html_pi_attribute_style = on_single_line
|
||||
resharper_html_space_before_self_closing = false
|
||||
resharper_html_wrap_lines = true
|
||||
resharper_ignore_space_preservation = false
|
||||
resharper_include_prefix_comment_in_indent = false
|
||||
resharper_indent_access_specifiers_from_class = false
|
||||
|
@ -642,7 +634,7 @@ resharper_remove_blank_lines_near_braces_in_declarations = true
|
|||
resharper_remove_this_qualifier = true
|
||||
resharper_requires_expression_braces = next_line
|
||||
resharper_resx_attribute_indent = single_indent
|
||||
resharper_resx_insert_final_newline = false
|
||||
resharper_resx_insert_final_newline = true
|
||||
resharper_resx_linebreak_before_elements =
|
||||
resharper_resx_max_blank_lines_between_tags = 0
|
||||
resharper_resx_max_line_length = 2147483647
|
||||
|
@ -853,7 +845,7 @@ resharper_wrap_switch_expression = chop_always
|
|||
resharper_wrap_ternary_expr_style = chop_if_long
|
||||
resharper_wrap_verbatim_interpolated_strings = no_wrap
|
||||
resharper_xmldoc_attribute_indent = single_indent
|
||||
resharper_xmldoc_insert_final_newline = false
|
||||
resharper_xmldoc_insert_final_newline = true
|
||||
resharper_xmldoc_linebreak_before_elements = summary, remarks, example, returns, param, typeparam, value, para
|
||||
resharper_xmldoc_max_blank_lines_between_tags = 0
|
||||
resharper_xmldoc_max_line_length = 120
|
||||
|
@ -862,16 +854,6 @@ resharper_xmldoc_space_before_self_closing = true
|
|||
resharper_xmldoc_wrap_lines = true
|
||||
resharper_xmldoc_wrap_tags_and_pi = true
|
||||
resharper_xmldoc_wrap_text = true
|
||||
resharper_xml_attribute_indent = align_by_first_attribute
|
||||
resharper_xml_insert_final_newline = false
|
||||
resharper_xml_linebreak_before_elements =
|
||||
resharper_xml_max_blank_lines_between_tags = 2
|
||||
resharper_xml_max_line_length = 120
|
||||
resharper_xml_pi_attribute_style = do_not_touch
|
||||
resharper_xml_space_before_self_closing = true
|
||||
resharper_xml_wrap_lines = true
|
||||
resharper_xml_wrap_tags_and_pi = true
|
||||
resharper_xml_wrap_text = false
|
||||
|
||||
# ReSharper inspection severities
|
||||
resharper_access_rights_in_text_highlighting = warning
|
||||
|
|
|
@ -116,4 +116,4 @@ public sealed class Boyfriend
|
|||
.AddFilter<SerilogLoggerProvider>("System.Net.Http.HttpClient.*.ClientHandler", LogLevel.Warning)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,4 +16,4 @@ public static class ColorsList
|
|||
public static readonly Color Cyan = Color.LightSkyBlue;
|
||||
public static readonly Color Black = Color.Black;
|
||||
public static readonly Color White = Color.WhiteSmoke;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,4 +89,4 @@ public class AboutCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -278,4 +278,4 @@ public class BanCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,4 +131,4 @@ public class ClearCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,4 +42,4 @@ public class ErrorLoggingPostExecutionEvent : IPostExecutionEvent
|
|||
|
||||
return Task.FromResult(Result.FromSuccess());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,4 +42,4 @@ public class LoggingPreparationErrorEvent : IPreparationErrorEvent
|
|||
|
||||
return Task.FromResult(Result.FromSuccess());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,4 +170,4 @@ public class KickCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -257,4 +257,4 @@ public class MuteCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,4 +98,4 @@ public class PingCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,4 +92,4 @@ public class RemindCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -205,4 +205,4 @@ public class SettingsCommandGroup : CommandGroup
|
|||
|
||||
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,4 +41,4 @@ public sealed class GuildData
|
|||
MemberData.Add(userId.Value, newData);
|
||||
return newData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,4 +66,4 @@ public static class GuildSettings
|
|||
/// </summary>
|
||||
public static readonly TimeSpanOption EventEarlyNotificationOffset = new(
|
||||
"EventEarlyNotificationOffset", TimeSpan.Zero);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ public sealed class MemberData
|
|||
public DateTimeOffset? BannedUntil { get; set; }
|
||||
public List<ulong> Roles { get; set; } = new();
|
||||
public List<Reminder> Reminders { get; } = new();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,4 +38,4 @@ public sealed class BoolOption : Option<bool>
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ public interface IOption
|
|||
string Name { get; }
|
||||
string Display(JsonNode settings);
|
||||
Result Set(JsonNode settings, string from);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@ public sealed class LanguageOption : Option<CultureInfo>
|
|||
? base.Set(settings, from.ToLowerInvariant())
|
||||
: new ArgumentInvalidError(nameof(from), Messages.LanguageNotSupported);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,4 +48,4 @@ public class Option<T> : IOption
|
|||
var property = settings[Name];
|
||||
return property != null ? property.GetValue<T>() : DefaultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@ public sealed partial class SnowflakeOption : Option<Snowflake>
|
|||
|
||||
[GeneratedRegex("[^0-9]")]
|
||||
private static partial Regex NonNumbers();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,4 +31,4 @@ public sealed class TimeSpanOption : Option<TimeSpan>
|
|||
{
|
||||
return Parser.TryParseAsync(from).AsTask().GetAwaiter().GetResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@ public struct Reminder
|
|||
public DateTimeOffset At;
|
||||
public string Text;
|
||||
public ulong Channel;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,4 +16,4 @@ public sealed class ScheduledEventData
|
|||
public bool EarlyNotificationSent { get; set; }
|
||||
public DateTimeOffset? ActualStartTime { get; set; }
|
||||
public GuildScheduledEventStatus Status { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -258,4 +258,4 @@ public static class Extensions
|
|||
|
||||
return (Result)await feedback.SendContextualEmbedAsync(embed, ct: ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,4 +39,4 @@ public class InteractionResponders : InteractionGroup
|
|||
$"https://discord.com/events/{idArray[0]}/{idArray[1]}",
|
||||
options: new FeedbackMessageOptions(MessageFlags: MessageFlags.Ephemeral), ct: CancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,4 +77,4 @@ public class GuildLoadedResponder : IResponder<IGuildCreate>
|
|||
return (Result)await _channelApi.CreateMessageAsync(
|
||||
GuildSettings.PrivateFeedbackChannel.Get(cfg), embeds: new[] { built }, ct: ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,4 +81,4 @@ public class GuildMemberJoinedResponder : IResponder<IGuildMemberAdd>
|
|||
GuildSettings.PublicFeedbackChannel.Get(cfg), embeds: new[] { built },
|
||||
allowedMentions: Boyfriend.NoMentions, ct: ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,4 +26,4 @@ public class GuildMemberUpdateResponder : IResponder<IGuildMemberUpdate>
|
|||
memberData.Roles = gatewayEvent.Roles.ToList().ConvertAll(r => r.Value);
|
||||
return Result.FromSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,4 +101,4 @@ public class MessageDeletedResponder : IResponder<IMessageDelete>
|
|||
GuildSettings.PrivateFeedbackChannel.Get(cfg), embeds: new[] { built },
|
||||
allowedMentions: Boyfriend.NoMentions, ct: ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,4 +118,4 @@ public class MessageEditedResponder : IResponder<IMessageUpdate>
|
|||
GuildSettings.PrivateFeedbackChannel.Get(cfg), embeds: new[] { built },
|
||||
allowedMentions: Boyfriend.NoMentions, ct: ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,4 +35,4 @@ public class MessageCreateResponder : IResponder<IMessageCreate>
|
|||
});
|
||||
return Task.FromResult(Result.FromSuccess());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,4 +50,4 @@ public class GuildScheduledEventDeleteResponder : IResponder<IGuildScheduledEven
|
|||
return (Result)await _channelApi.CreateMessageAsync(
|
||||
GuildSettings.EventNotificationChannel.Get(guildData.Settings), embeds: new[] { built }, ct: ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -145,4 +145,4 @@ public sealed class GuildDataService : IHostedService
|
|||
{
|
||||
return _datas.Keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -625,4 +625,4 @@ public sealed partial class GuildUpdateService : BackgroundService
|
|||
content,
|
||||
embeds: new[] { earlyBuilt }, ct: ct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -253,4 +253,4 @@ public sealed class UtilityService : IHostedService
|
|||
|
||||
return Result.FromSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue