mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Revert naming style change and supress in code
This commit is contained in:
@@ -43,7 +43,7 @@ dotnet_naming_rule.local_function_camelcase.severity = warning
|
||||
dotnet_naming_rule.local_function_camelcase.symbols = local_function
|
||||
dotnet_naming_rule.local_function_camelcase.style = camelcase
|
||||
|
||||
#all_lower for private and local constants
|
||||
#all_lower for private and local constants/static readonlys
|
||||
dotnet_naming_style.all_lower.capitalization = all_lower
|
||||
dotnet_naming_style.all_lower.word_separator = _
|
||||
|
||||
@@ -54,13 +54,20 @@ dotnet_naming_rule.private_const_all_lower.severity = warning
|
||||
dotnet_naming_rule.private_const_all_lower.symbols = private_constants
|
||||
dotnet_naming_rule.private_const_all_lower.style = all_lower
|
||||
|
||||
dotnet_naming_symbols.private_static_readonly.applicable_accessibilities = private
|
||||
dotnet_naming_symbols.private_static_readonly.required_modifiers = static,readonly
|
||||
dotnet_naming_symbols.private_static_readonly.applicable_kinds = field
|
||||
dotnet_naming_rule.private_static_readonly_all_lower.severity = warning
|
||||
dotnet_naming_rule.private_static_readonly_all_lower.symbols = private_static_readonly
|
||||
dotnet_naming_rule.private_static_readonly_all_lower.style = all_lower
|
||||
|
||||
dotnet_naming_symbols.local_constants.applicable_kinds = local
|
||||
dotnet_naming_symbols.local_constants.required_modifiers = const
|
||||
dotnet_naming_rule.local_const_all_lower.severity = warning
|
||||
dotnet_naming_rule.local_const_all_lower.symbols = local_constants
|
||||
dotnet_naming_rule.local_const_all_lower.style = all_lower
|
||||
|
||||
#ALL_UPPER for non private constants
|
||||
#ALL_UPPER for non private constants/static readonlys
|
||||
dotnet_naming_style.all_upper.capitalization = all_upper
|
||||
dotnet_naming_style.all_upper.word_separator = _
|
||||
|
||||
@@ -71,6 +78,13 @@ dotnet_naming_rule.public_const_all_upper.severity = warning
|
||||
dotnet_naming_rule.public_const_all_upper.symbols = public_constants
|
||||
dotnet_naming_rule.public_const_all_upper.style = all_upper
|
||||
|
||||
dotnet_naming_symbols.public_static_readonly.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
|
||||
dotnet_naming_symbols.public_static_readonly.required_modifiers = static,readonly
|
||||
dotnet_naming_symbols.public_static_readonly.applicable_kinds = field
|
||||
dotnet_naming_rule.public_static_readonly_all_upper.severity = warning
|
||||
dotnet_naming_rule.public_static_readonly_all_upper.symbols = public_static_readonly
|
||||
dotnet_naming_rule.public_static_readonly_all_upper.style = all_upper
|
||||
|
||||
#Roslyn formating options
|
||||
|
||||
#Formatting - indentation options
|
||||
|
||||
@@ -17,7 +17,9 @@ namespace osu.Framework.Graphics.Primitives
|
||||
{
|
||||
/// <summary>Represents an instance of the <see cref="RectangleF"/> class with its members uninitialized.</summary>
|
||||
/// <filterpriority>1</filterpriority>
|
||||
#pragma warning disable IDE1006 // Naming style
|
||||
public static readonly RectangleF Empty;
|
||||
#pragma warning restore IDE1006
|
||||
|
||||
public float X;
|
||||
public float Y;
|
||||
|
||||
@@ -17,7 +17,9 @@ namespace osu.Framework.Graphics.Primitives
|
||||
{
|
||||
/// <summary>Represents an instance of the <see cref="RectangleI"/> class with its members uninitialized.</summary>
|
||||
/// <filterpriority>1</filterpriority>
|
||||
#pragma warning disable IDE1006 // Naming style
|
||||
public static readonly RectangleI Empty;
|
||||
#pragma warning restore IDE1006
|
||||
|
||||
public int X;
|
||||
public int Y;
|
||||
|
||||
@@ -25,9 +25,11 @@ namespace osu.Framework.Graphics.Primitives
|
||||
Y = y;
|
||||
}
|
||||
|
||||
#pragma warning disable IDE1006 // Naming style
|
||||
public static readonly Vector2I Zero;
|
||||
|
||||
public static readonly Vector2I One = new Vector2I(1);
|
||||
#pragma warning restore IDE1006
|
||||
|
||||
public static implicit operator Vector2(Vector2I r) => new Vector2(r.X, r.Y);
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@ namespace osu.Framework.Localisation
|
||||
public class LocalisableStringEqualityComparer : IEqualityComparer<LocalisableString>
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming (follows EqualityComparer<T>.Default)
|
||||
#pragma warning disable IDE1006 // Naming style
|
||||
public static readonly LocalisableStringEqualityComparer Default = new LocalisableStringEqualityComparer();
|
||||
#pragma warning restore IDE1006
|
||||
|
||||
public bool Equals(LocalisableString x, LocalisableString y)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user