Skip to content

Commit 91131f3

Browse files
authored
Merge pull request #3207 from sharwell/update-tools
Update to StyleCop.Analyzers 1.2.0-beta.205
2 parents cf2cd83 + 17a534d commit 91131f3

8 files changed

Lines changed: 23 additions & 20 deletions

File tree

StyleCop.Analyzers/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<ItemGroup>
4646
<PackageReference Include="AsyncUsageAnalyzers" Version="1.0.0-alpha003" PrivateAssets="all" />
4747
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.46" PrivateAssets="all" />
48-
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.66" PrivateAssets="all" />
48+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.205" PrivateAssets="all" />
4949
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.0" PrivateAssets="all" />
5050
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.7.0-6.20427.1" PrivateAssets="all" />
5151
</ItemGroup>

StyleCop.Analyzers/StyleCop.Analyzers.Status.Generator/CodeFixStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace StyleCop.Analyzers.Status.Generator
99
public enum CodeFixStatus
1010
{
1111
/// <summary>
12-
/// This value indicates, that a code fix is implemented
12+
/// This value indicates, that a code fix is implemented.
1313
/// </summary>
1414
Implemented,
1515

StyleCop.Analyzers/StyleCop.Analyzers.Test/MaintainabilityRules/SA1402SettingsConfiguration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ namespace StyleCop.Analyzers.Test.MaintainabilityRules
66
public enum SA1402SettingsConfiguration
77
{
88
/// <summary>
9-
/// Provide no custom settings
9+
/// Provide no custom settings.
1010
/// </summary>
1111
KeepDefaultConfiguration,
1212

1313
/// <summary>
14-
/// Provide custom settings that configure the tested type as being a top level type
14+
/// Provide custom settings that configure the tested type as being a top-level type.
1515
/// </summary>
1616
ConfigureAsTopLevelType,
1717

1818
/// <summary>
19-
/// Provide custom settings that configure the tested type as not being a top level type
19+
/// Provide custom settings that configure the tested type as not being a top-level type.
2020
/// </summary>
2121
ConfigureAsNonTopLevelType,
2222
}

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/MemberOrderHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,22 @@ internal MemberOrderHelper(MemberDeclarationSyntax member, ImmutableArray<Orderi
9898
private enum ModifierFlags
9999
{
100100
/// <summary>
101-
/// No modifiers
101+
/// No modifiers.
102102
/// </summary>
103103
None = 0,
104104

105105
/// <summary>
106-
/// Readonly modifier
106+
/// <see langword="readonly"/> modifier.
107107
/// </summary>
108108
Readonly = 1,
109109

110110
/// <summary>
111-
/// Static modifier
111+
/// <see langword="static"/> modifier.
112112
/// </summary>
113113
Static = 1 << 2,
114114

115115
/// <summary>
116-
/// Const modifier
116+
/// <see langword="const"/> modifier.
117117
/// </summary>
118118
Const = 1 << 3,
119119
}

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ModifierOrderHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ internal static class ModifierOrderHelper
1414
internal enum ModifierType
1515
{
1616
/// <summary>
17-
/// Represents default value
17+
/// Represents default value.
1818
/// </summary>
1919
None,
2020

2121
/// <summary>
22-
/// Represents any of access modifiers i.e public, protected, internal, private
22+
/// Represents any of access modifiers, i.e <see langword="public"/>, <see langword="protected"/>, <see langword="internal"/>, <see langword="private"/>.
2323
/// </summary>
2424
Access,
2525

2626
/// <summary>
27-
/// Represents static modifier
27+
/// Represents <see langword="static"/> modifier.
2828
/// </summary>
2929
Static,
3030

3131
/// <summary>
32-
/// Represents other modifiers i.e partial, virtual, abstract, override, extern, unsafe, new, async, const, sealed, readonly, volatile, fixed, ref
32+
/// Represents other modifiers, i.e <see langword="partial"/>, <see langword="virtual"/>, <see langword="abstract"/>, <see langword="override"/>, <see langword="extern"/>, <see langword="unsafe"/>, <see langword="new"/>, <see langword="async"/>, <see langword="const"/>, <see langword="sealed"/>, <see langword="readonly"/>, <see langword="volatile"/>, <see langword="fixed"/>, <see langword="ref"/>.
3333
/// </summary>
3434
Other,
3535
}

StyleCop.Analyzers/StyleCop.Analyzers/Settings/ObjectModel/FileNamingConvention.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ namespace StyleCop.Analyzers.Settings.ObjectModel
66
internal enum FileNamingConvention
77
{
88
/// <summary>
9-
/// Files are named using the StyleCop convention (e.g. TypeName{T1,T2})
9+
/// Files are named using the StyleCop convention (e.g. <c>TypeName{T1,T2}</c>).
1010
/// </summary>
1111
StyleCop,
1212

1313
/// <summary>
14-
/// Files are named using the metadata convention (e.g. TypeName`2)
14+
/// Files are named using the metadata convention (e.g. <c>TypeName`2</c>).
1515
/// </summary>
1616
Metadata,
1717
}

StyleCop.Analyzers/StyleCop.Analyzers/Settings/ObjectModel/TopLevelType.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ namespace StyleCop.Analyzers.Settings.ObjectModel
66
internal enum TopLevelType
77
{
88
/// <summary>
9-
/// Classes are considered top-level types
9+
/// Classes are considered top-level types.
1010
/// </summary>
1111
Class,
1212

1313
/// <summary>
14-
/// Interfaces are considered top-level types
14+
/// Interfaces are considered top-level types.
1515
/// </summary>
1616
Interface,
1717

1818
/// <summary>
19-
/// Structs are considered top-level types
19+
/// Structs are considered top-level types.
2020
/// </summary>
2121
Struct,
2222

2323
/// <summary>
24-
/// Delegates are considered top-level types
24+
/// Delegates are considered top-level types.
2525
/// </summary>
2626
Delegate,
2727

2828
/// <summary>
29-
/// Enums are considered top-level types
29+
/// Enums are considered top-level types.
3030
/// </summary>
3131
Enum,
3232
}

StyleCop.Analyzers/stylecop.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
},
1010
"layoutRules": {
1111
"newlineAtEndOfFile": "require"
12+
},
13+
"namingRules": {
14+
"tupleElementNameCasing": "camelCase"
1215
}
1316
}
1417
}

0 commit comments

Comments
 (0)