Skip to content

Commit

Permalink
Ignored some InconsistentNamingWarnings
Browse files Browse the repository at this point in the history
Either existing setting keys or SimpleJson stuff
  • Loading branch information
ErisApps committed Oct 27, 2020
1 parent 88ef474 commit 8efcdc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChatCore/Services/MainSettingsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ public class MainSettingsProvider

[ConfigSection("Twitch")]
[ConfigMeta(Comment = "When enabled, BetterTwitchTV emotes will be parsed.")]
// ReSharper disable once InconsistentNaming
public bool ParseBTTVEmotes = true;
[ConfigMeta(Comment = "When enabled, FrankerFaceZ emotes will be parsed.")]
// ReSharper disable once InconsistentNaming
public bool ParseFFZEmotes = true;
[ConfigMeta(Comment = "When enabled, Twitch emotes will be parsed.")]
public bool ParseTwitchEmotes = true;
Expand Down
14 changes: 14 additions & 0 deletions ChatCore/Utilities/SimpleJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

namespace ChatCore.Utilities
{
// ReSharper disable once InconsistentNaming
public enum JSONNodeType
{
Array = 1,
Expand All @@ -55,12 +56,14 @@ public enum JSONNodeType
Custom = 0xFF,
}

// ReSharper disable once InconsistentNaming
public enum JSONTextMode
{
Compact,
Indent
}

// ReSharper disable once InconsistentNaming
public abstract partial class JSONNode
{
#region Enumerators
Expand Down Expand Up @@ -199,10 +202,13 @@ IEnumerator IEnumerable.GetEnumerator()

public abstract JSONNodeType Tag { get; }

// ReSharper disable once ValueParameterNotUsed
public virtual JSONNode this[int aIndex] { get => null!; set { } }

// ReSharper disable once ValueParameterNotUsed
public virtual JSONNode this[string aKey] { get => null!; set { } }

// ReSharper disable once ValueParameterNotUsed
public virtual string Value { get => ""; set { } }

public virtual int Count => 0;
Expand All @@ -214,6 +220,7 @@ IEnumerator IEnumerable.GetEnumerator()
public virtual bool IsArray => false;
public virtual bool IsObject => false;

// ReSharper disable once ValueParameterNotUsed
public virtual bool Inline { get => false; set { } }

public virtual void Add(string? aKey, JSONNode? aItem)
Expand Down Expand Up @@ -752,6 +759,7 @@ public static JSONNode Parse(string aJson)
}
// End of JSONNode

// ReSharper disable once InconsistentNaming
public partial class JSONArray : JSONNode
{
private readonly List<JSONNode> _mList = new List<JSONNode>();
Expand Down Expand Up @@ -922,6 +930,7 @@ public JSONArray(IEnumerable<string> array)
}
// End of JSONArray

// ReSharper disable once InconsistentNaming
public partial class JSONObject : JSONNode
{
private readonly Dictionary<string, JSONNode> _mDict = new Dictionary<string, JSONNode>();
Expand Down Expand Up @@ -1157,6 +1166,7 @@ internal override void WriteToStringBuilder(StringBuilder aStringBuilder, int aI
}
// End of JSONObject

// ReSharper disable once InconsistentNaming
public partial class JSONString : JSONNode
{
private string _mData;
Expand Down Expand Up @@ -1216,6 +1226,7 @@ public override int GetHashCode()
}
// End of JSONString

// ReSharper disable once InconsistentNaming
public partial class JSONNumber : JSONNode
{
private double _mData;
Expand Down Expand Up @@ -1311,6 +1322,7 @@ public override int GetHashCode()
}
// End of JSONNumber

// ReSharper disable once InconsistentNaming
public partial class JSONBool : JSONNode
{
private bool _mData;
Expand Down Expand Up @@ -1374,6 +1386,7 @@ public override int GetHashCode()
}
// End of JSONBool

// ReSharper disable once InconsistentNaming
public partial class JSONNull : JSONNode
{
private static readonly JSONNull MStaticInstance = new JSONNull();
Expand Down Expand Up @@ -1586,6 +1599,7 @@ internal override void WriteToStringBuilder(StringBuilder aStringBuilder, int aI
}
// End of JSONLazyCreator

// ReSharper disable once InconsistentNaming
public static class JSON
{
public static JSONNode Parse(string aJson)
Expand Down

0 comments on commit 8efcdc9

Please sign in to comment.