1
0
Fork 1
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:
Octol1ttle 2023-08-02 23:51:17 +05:00
parent c654857bf1
commit c8fbb65dc2
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
36 changed files with 38 additions and 56 deletions

View file

@ -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

View file

@ -116,4 +116,4 @@ public sealed class Boyfriend
.AddFilter<SerilogLoggerProvider>("System.Net.Http.HttpClient.*.ClientHandler", LogLevel.Warning)
);
}
}
}

View file

@ -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;
}
}

View file

@ -89,4 +89,4 @@ public class AboutCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -278,4 +278,4 @@ public class BanCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -131,4 +131,4 @@ public class ClearCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -42,4 +42,4 @@ public class ErrorLoggingPostExecutionEvent : IPostExecutionEvent
return Task.FromResult(Result.FromSuccess());
}
}
}

View file

@ -42,4 +42,4 @@ public class LoggingPreparationErrorEvent : IPreparationErrorEvent
return Task.FromResult(Result.FromSuccess());
}
}
}

View file

@ -170,4 +170,4 @@ public class KickCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -257,4 +257,4 @@ public class MuteCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -98,4 +98,4 @@ public class PingCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -92,4 +92,4 @@ public class RemindCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -205,4 +205,4 @@ public class SettingsCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, ct);
}
}
}

View file

@ -41,4 +41,4 @@ public sealed class GuildData
MemberData.Add(userId.Value, newData);
return newData;
}
}
}

View file

@ -66,4 +66,4 @@ public static class GuildSettings
/// </summary>
public static readonly TimeSpanOption EventEarlyNotificationOffset = new(
"EventEarlyNotificationOffset", TimeSpan.Zero);
}
}

View file

@ -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();
}
}

View file

@ -38,4 +38,4 @@ public sealed class BoolOption : Option<bool>
return false;
}
}
}
}

View file

@ -8,4 +8,4 @@ public interface IOption
string Name { get; }
string Display(JsonNode settings);
Result Set(JsonNode settings, string from);
}
}

View file

@ -36,4 +36,4 @@ public sealed class LanguageOption : Option<CultureInfo>
? base.Set(settings, from.ToLowerInvariant())
: new ArgumentInvalidError(nameof(from), Messages.LanguageNotSupported);
}
}
}

View file

@ -48,4 +48,4 @@ public class Option<T> : IOption
var property = settings[Name];
return property != null ? property.GetValue<T>() : DefaultValue;
}
}
}

View file

@ -36,4 +36,4 @@ public sealed partial class SnowflakeOption : Option<Snowflake>
[GeneratedRegex("[^0-9]")]
private static partial Regex NonNumbers();
}
}

View file

@ -31,4 +31,4 @@ public sealed class TimeSpanOption : Option<TimeSpan>
{
return Parser.TryParseAsync(from).AsTask().GetAwaiter().GetResult();
}
}
}

View file

@ -5,4 +5,4 @@ public struct Reminder
public DateTimeOffset At;
public string Text;
public ulong Channel;
}
}

View file

@ -16,4 +16,4 @@ public sealed class ScheduledEventData
public bool EarlyNotificationSent { get; set; }
public DateTimeOffset? ActualStartTime { get; set; }
public GuildScheduledEventStatus Status { get; set; }
}
}

View file

@ -258,4 +258,4 @@ public static class Extensions
return (Result)await feedback.SendContextualEmbedAsync(embed, ct: ct);
}
}
}

View file

@ -39,4 +39,4 @@ public class InteractionResponders : InteractionGroup
$"https://discord.com/events/{idArray[0]}/{idArray[1]}",
options: new FeedbackMessageOptions(MessageFlags: MessageFlags.Ephemeral), ct: CancellationToken);
}
}
}

View file

@ -77,4 +77,4 @@ public class GuildLoadedResponder : IResponder<IGuildCreate>
return (Result)await _channelApi.CreateMessageAsync(
GuildSettings.PrivateFeedbackChannel.Get(cfg), embeds: new[] { built }, ct: ct);
}
}
}

View file

@ -81,4 +81,4 @@ public class GuildMemberJoinedResponder : IResponder<IGuildMemberAdd>
GuildSettings.PublicFeedbackChannel.Get(cfg), embeds: new[] { built },
allowedMentions: Boyfriend.NoMentions, ct: ct);
}
}
}

View file

@ -26,4 +26,4 @@ public class GuildMemberUpdateResponder : IResponder<IGuildMemberUpdate>
memberData.Roles = gatewayEvent.Roles.ToList().ConvertAll(r => r.Value);
return Result.FromSuccess();
}
}
}

View file

@ -101,4 +101,4 @@ public class MessageDeletedResponder : IResponder<IMessageDelete>
GuildSettings.PrivateFeedbackChannel.Get(cfg), embeds: new[] { built },
allowedMentions: Boyfriend.NoMentions, ct: ct);
}
}
}

View file

@ -118,4 +118,4 @@ public class MessageEditedResponder : IResponder<IMessageUpdate>
GuildSettings.PrivateFeedbackChannel.Get(cfg), embeds: new[] { built },
allowedMentions: Boyfriend.NoMentions, ct: ct);
}
}
}

View file

@ -35,4 +35,4 @@ public class MessageCreateResponder : IResponder<IMessageCreate>
});
return Task.FromResult(Result.FromSuccess());
}
}
}

View file

@ -50,4 +50,4 @@ public class GuildScheduledEventDeleteResponder : IResponder<IGuildScheduledEven
return (Result)await _channelApi.CreateMessageAsync(
GuildSettings.EventNotificationChannel.Get(guildData.Settings), embeds: new[] { built }, ct: ct);
}
}
}

View file

@ -145,4 +145,4 @@ public sealed class GuildDataService : IHostedService
{
return _datas.Keys;
}
}
}

View file

@ -625,4 +625,4 @@ public sealed partial class GuildUpdateService : BackgroundService
content,
embeds: new[] { earlyBuilt }, ct: ct);
}
}
}

View file

@ -253,4 +253,4 @@ public sealed class UtilityService : IHostedService
return Result.FromSuccess();
}
}
}