diff --git a/.editorconfig b/.editorconfig
index 90d8b1132e..d0c36b837f 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -126,6 +126,9 @@ dotnet_style_predefined_type_for_locals_parameters_members = true
# Show an IDE warning when default access modifiers are explicitly specified.
dotnet_style_require_accessibility_modifiers = omit_if_default:warning
+# Simplify name.
+dotnet_diagnostic.IDE0001.severity = warning
+
# use 'var' instead of explicit type
dotnet_diagnostic.IDE0007.severity = warning
diff --git a/OpenRA.Game/Map/MapCache.cs b/OpenRA.Game/Map/MapCache.cs
index e727c85144..c55331e578 100644
--- a/OpenRA.Game/Map/MapCache.cs
+++ b/OpenRA.Game/Map/MapCache.cs
@@ -137,7 +137,7 @@ namespace OpenRA
IReadOnlyPackage mapPackage = null;
try
{
- using (new Support.PerfTimer(map))
+ using (new PerfTimer(map))
{
mapPackage = package.OpenPackage(map, modData.ModFiles);
if (mapPackage != null)
diff --git a/OpenRA.Game/Traits/TraitsInterfaces.cs b/OpenRA.Game/Traits/TraitsInterfaces.cs
index 852ba5e4b2..c80bae7af7 100644
--- a/OpenRA.Game/Traits/TraitsInterfaces.cs
+++ b/OpenRA.Game/Traits/TraitsInterfaces.cs
@@ -37,7 +37,7 @@ namespace OpenRA.Traits
}
///
- /// Type tag for DamageTypes .
+ /// Type tag for DamageTypes .
///
public sealed class DamageType { DamageType() { } }
@@ -483,7 +483,7 @@ namespace OpenRA.Traits
}
///
- /// Indicates target types as defined on are present in a .
+ /// Indicates target types as defined on are present in a .
///
public sealed class TargetableType { TargetableType() { } }
diff --git a/OpenRA.Game/WPos.cs b/OpenRA.Game/WPos.cs
index 667ad44fe8..15bc17ea06 100644
--- a/OpenRA.Game/WPos.cs
+++ b/OpenRA.Game/WPos.cs
@@ -66,7 +66,7 @@ namespace OpenRA
// Add an additional quadratic variation to height
// Uses decimal to avoid integer overflow
var offset = (decimal)(b - a).Length * pitch.Tan() * mul * (div - mul) / (1024 * div * div);
- var clampedOffset = (int)(offset + (decimal)ret.Z).Clamp((decimal)int.MinValue, (decimal)int.MaxValue);
+ var clampedOffset = (int)(offset + (decimal)ret.Z).Clamp((decimal)int.MinValue, (decimal)int.MaxValue);
return new WPos(ret.X, ret.Y, clampedOffset);
}
diff --git a/OpenRA.Game/World.cs b/OpenRA.Game/World.cs
index 49c8f4808b..a80110b65f 100644
--- a/OpenRA.Game/World.cs
+++ b/OpenRA.Game/World.cs
@@ -516,12 +516,12 @@ namespace OpenRA
public void ApplyToActorsWithTraitTimed(Action action, string text)
{
- TraitDict.ApplyToActorsWithTraitTimed(action, text);
+ TraitDict.ApplyToActorsWithTraitTimed(action, text);
}
public void ApplyToActorsWithTrait(Action action)
{
- TraitDict.ApplyToActorsWithTrait(action);
+ TraitDict.ApplyToActorsWithTrait(action);
}
public IEnumerable ActorsHavingTrait()