Skip to content

Commit 92358ee

Browse files
authored
feat: add new rule for .editorconfig (#822)
* feat: add new rule for .editorconfig * remove resharper specific remove resharper specific as Github build do not take it into account * stylecop is happy life :3 * using change * fix compile error * halfway from player i need to sleep * fix: now Style code make Error like i wanted * 127 Error remaining * 98 Error remaining * there was more error * Bro i finally succeed to GPT making it * fix * Update EXILED/Exiled.Events/Patches/Fixes/RoleChangedPatch.cs * Update EXILED/Exiled.Events/Patches/Fixes/FixNWFlashbangDuration.cs * more rules :3 * Update SyleCopVersion * it's finally got it right * fix build error * better check * more ignore * fix: Error on Debug * fix: build error * useless pragma warning disable * found a better way than warning disable * oups this shouldn't have been removed * doc: DanceType.None
1 parent 4a40bc1 commit 92358ee

843 files changed

Lines changed: 2170 additions & 1574 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

EXILED/.editorconfig

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,37 @@ ij_wrap_on_typing = false
1919
csharp_style_var_for_built_in_types = false:error
2020
csharp_style_var_when_type_is_apparent = false:error
2121
csharp_style_var_elsewhere = false:error
22+
dotnet_diagnostic.IDE0005.severity = warning
23+
dotnet_diagnostic.IDE0017.severity = warning
24+
dotnet_diagnostic.IDE0019.severity = warning
25+
dotnet_diagnostic.IDE0031.severity = warning
26+
dotnet_diagnostic.IDE0048.severity = warning
27+
dotnet_diagnostic.IDE0055.severity = warning
28+
dotnet_diagnostic.IDE0060.severity = warning
29+
dotnet_diagnostic.IDE0074.severity = warning
30+
dotnet_diagnostic.IDE0079.severity = warning
31+
dotnet_diagnostic.IDE0090.severity = warning
32+
dotnet_diagnostic.IDE0200.severity = warning
33+
dotnet_diagnostic.IDE0350.severity = warning
34+
dotnet_diagnostic.IDE0370.severity = warning
35+
36+
dotnet_diagnostic.IDE0028.severity = none
37+
dotnet_diagnostic.IDE0034.severity = none
38+
dotnet_diagnostic.IDE0056.severity = none
39+
dotnet_diagnostic.IDE0057.severity = none
40+
dotnet_diagnostic.IDE0290.severity = none
41+
dotnet_diagnostic.IDE0300.severity = none
42+
dotnet_diagnostic.IDE0301.severity = none
43+
dotnet_diagnostic.IDE0302.severity = none
44+
dotnet_diagnostic.IDE0303.severity = none
45+
dotnet_diagnostic.IDE0304.severity = none
2246
dotnet_diagnostic.IDE0305.severity = none
47+
dotnet_diagnostic.IDE0306.severity = none
48+
dotnet_diagnostic.IDE0340.severity = none
2349

24-
# ReSharper properties
25-
resharper_csharp_max_line_length = 400
50+
dotnet_sort_system_directives_first = true
51+
dotnet_separate_import_directive_groups = true
52+
csharp_using_directive_placement = inside_namespace
2653

2754
[*.properties]
2855
ij_properties_align_group_field_declarations = false

EXILED/EXILED.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<PublicBeta>false</PublicBeta>
2121

2222
<HarmonyVersion>2.4.2</HarmonyVersion>
23-
<StyleCopVersion>1.1.118</StyleCopVersion>
23+
<StyleCopVersion>1.2.0-beta.556</StyleCopVersion>
2424
<SemanticVersioningVersion>2.0.2</SemanticVersioningVersion>
2525

2626
<Copyright>Copyright © $(Authors) 2020 - $([System.DateTime]::Now.ToString("yyyy"))</Copyright>
@@ -35,6 +35,7 @@
3535
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
3636
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
3737
<GenerateDocumentationFile>True</GenerateDocumentationFile>
38+
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
3839
<DebugType>Portable</DebugType>
3940
</PropertyGroup>
4041

EXILED/Exiled.API/Enums/AmmoType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ public enum AmmoType
4040

4141
/// <summary>
4242
/// 12 gauge shotgun ammo.
43-
/// Used by <see cref="ItemType.GunShotgun"/>
43+
/// Used by <see cref="ItemType.GunShotgun"/>.
4444
/// </summary>
4545
Ammo12Gauge,
4646

4747
/// <summary>
4848
/// 44 Caliber Revolver Ammo
49-
/// Used by <see cref="ItemType.GunRevolver"/>
49+
/// Used by <see cref="ItemType.GunRevolver"/>.
5050
/// </summary>
5151
Ammo44Cal,
5252
}

EXILED/Exiled.API/Enums/AspectRatioType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ public enum AspectRatioType : byte
5757
/// </summary>
5858
Ratio32_9,
5959
}
60-
}
60+
}

EXILED/Exiled.API/Enums/CameraType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ public enum CameraType
166166
HczLoadingBayStairwell,
167167
#endregion
168168
}
169-
}
169+
}

EXILED/Exiled.API/Enums/DamageType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public enum DamageType
240240
A7,
241241

242242
/// <summary>
243-
/// Damage caused by <see cref="RoleTypeId.Scp3114"/>
243+
/// Damage caused by <see cref="RoleTypeId.Scp3114"/>.
244244
/// </summary>
245245
Scp3114,
246246

@@ -289,4 +289,4 @@ public enum DamageType
289289
/// </summary>
290290
Scp1509,
291291
}
292-
}
292+
}

EXILED/Exiled.API/Enums/DanceType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public enum DanceType : byte
4848
Swing,
4949

5050
/// <summary>
51-
/// Dance1
51+
/// None.
5252
/// </summary>
5353
None = byte.MaxValue,
5454
}

EXILED/Exiled.API/Enums/DecontaminationState.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
namespace Exiled.API.Enums
99
{
10-
using System;
11-
1210
using Features;
1311

1412
/// <summary>
@@ -57,4 +55,4 @@ public enum DecontaminationState
5755
/// </summary>
5856
Finish,
5957
}
60-
}
58+
}

EXILED/Exiled.API/Enums/DoorLockType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ public enum DoorLockType
7474
/// </summary>
7575
Lockdown2176 = 512,
7676
}
77-
}
77+
}

EXILED/Exiled.API/Enums/DoorType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace Exiled.API.Enums
1010
using System;
1111

1212
using Exiled.API.Features.Doors;
13+
1314
using Interactables.Interobjects;
1415

1516
/// <summary>

0 commit comments

Comments
 (0)