Skip to content

Commit a02ccfc

Browse files
authored
Enable CA1052: Static holder should be static (#357)
1 parent f802ece commit a02ccfc

File tree

8 files changed

+7
-8
lines changed

8 files changed

+7
-8
lines changed

DocumentFormat.OpenXml.Tests/ConformanceTest/CommentEx/Commons.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace DocumentFormat.OpenXml.Tests.CommentEx
1212
/// <summary>
1313
/// Comment and CommentEx, Get support class.
1414
/// </summary>
15-
public class Commons
15+
public static class Commons
1616
{
1717
/// <summary>
1818
/// Comment object, Get support mothod.

DocumentFormat.OpenXml.Tests/ConformanceTest/ContentControl/DeleteElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace DocumentFormat.OpenXml.Tests.ContentControl
1212
/// <summary>
1313
/// Delete all of the std element
1414
/// </summary>
15-
public class DeleteElement
15+
public static class DeleteElement
1616
{
1717
/// <summary>
1818
/// Delete all of the std element

DocumentFormat.OpenXml.Tests/ConformanceTest/ContentControl/EditElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace DocumentFormat.OpenXml.Tests.ContentControl
1313
{
14-
public class EditElement
14+
public static class EditElement
1515
{
1616
public static void EditContentControlElements(string filePath, VerifiableLog log)
1717
{

DocumentFormat.OpenXml.Tests/ConformanceTest/ContentControl/VerifyDeletedElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace DocumentFormat.OpenXml.Tests.ContentControl
1111
/// <summary>
1212
/// Verify that the sdt element has been deleted
1313
/// </summary>
14-
public class VerifyDeletedElement
14+
public static class VerifyDeletedElement
1515
{
1616
/// <summary>
1717
/// Verify that the sdt element has been deleted

DocumentFormat.OpenXml.Tests/ConformanceTest/ContentControl/VerifyElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace DocumentFormat.OpenXml.Tests.ContentControl
1414
/// <summary>
1515
/// To check whether a document has been changed correctly
1616
/// </summary>
17-
public class VerifyElement
17+
public static class VerifyElement
1818
{
1919
/// <summary>
2020
/// To check whether a document has been changed correctly

DocumentFormat.OpenXml.Tests/TestUtil2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace OxTest
99
{
10-
public class TestUtil
10+
public static class TestUtil
1111
{
1212
public static string RootFolder => Path.GetDirectoryName(typeof(TestUtil).GetTypeInfo().Assembly.Location);
1313

Open-XML-SDK.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27130.2003
4+
VisualStudioVersion = 15.0.27130.2010
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocumentFormat.OpenXml", "DocumentFormat.OpenXml\DocumentFormat.OpenXml.csproj", "{16941A4A-F8DE-4C8D-BA2B-3C0774848D4B}"
77
EndProject

rules.ruleset

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@
197197
<Rule Id="CA1000" Action="None" />
198198
<Rule Id="CA1018" Action="None" />
199199
<Rule Id="CA1040" Action="None" />
200-
<Rule Id="CA1052" Action="None" />
201200
<Rule Id="CA1054" Action="None" />
202201
<Rule Id="CA1056" Action="None" />
203202
<Rule Id="CA1065" Action="None" />

0 commit comments

Comments
 (0)