Skip to content

Commit 03e81db

Browse files
committed
Fix style violations
1 parent 19ef919 commit 03e81db

9 files changed

Lines changed: 27 additions & 27 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/FileHeaderCodeFixProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ namespace StyleCop.Analyzers.DocumentationRules
1111
using System.Threading;
1212
using System.Threading.Tasks;
1313
using System.Xml.Linq;
14+
using Helpers.ObjectPools;
1415
using Microsoft.CodeAnalysis;
1516
using Microsoft.CodeAnalysis.CodeActions;
1617
using Microsoft.CodeAnalysis.CodeFixes;
1718
using Microsoft.CodeAnalysis.CSharp;
1819
using Microsoft.CodeAnalysis.Formatting;
1920
using StyleCop.Analyzers.Helpers;
2021
using StyleCop.Analyzers.Settings.ObjectModel;
21-
using Helpers.ObjectPools;
2222

2323
/// <summary>
2424
/// Implements a code fix for file header diagnostics.

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/ObjectPool.cs renamed to StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/ObjectPool{T}.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
// This code was copied from the Roslyn code base (and slightly modified)
5-
using System;
6-
using System.Diagnostics;
7-
using System.Threading;
8-
94
namespace StyleCop.Analyzers.Helpers.ObjectPools
105
{
6+
// This code was copied from the Roslyn code base (and slightly modified)
7+
using System;
8+
using System.Diagnostics;
9+
using System.Threading;
10+
1111
/// <summary>
1212
/// Generic implementation of object pooling pattern with predefined pool size limit. The main
1313
/// purpose is that limited number of frequently used objects can be kept in the pool for

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/PooledObject.cs renamed to StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/PooledObject{T}.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
// This code was copied from the Roslyn code base (and slightly modified)
5-
using System;
6-
using System.Collections.Generic;
7-
using System.Text;
8-
94
namespace StyleCop.Analyzers.Helpers.ObjectPools
105
{
6+
// This code was copied from the Roslyn code base (and slightly modified)
7+
using System;
8+
using System.Collections.Generic;
9+
using System.Text;
10+
1111
/// <summary>
1212
/// this is RAII object to automatically release pooled object when its owning pool
1313
/// </summary>

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/Extensions.cs renamed to StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/SharedPoolExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
// This code was copied from the Roslyn code base (and slightly modified)
5-
using System.Collections.Generic;
6-
using System.Text;
7-
84
namespace StyleCop.Analyzers.Helpers.ObjectPools
95
{
6+
// This code was copied from the Roslyn code base (and slightly modified)
7+
using System.Collections.Generic;
8+
using System.Text;
9+
1010
internal static class SharedPoolExtensions
1111
{
1212
private const int Threshold = 512;

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/SharedPools.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
// This code was copied from the Roslyn code base (and slightly modified)
5-
using System;
6-
using System.Collections.Generic;
7-
84
namespace StyleCop.Analyzers.Helpers.ObjectPools
95
{
6+
// This code was copied from the Roslyn code base (and slightly modified)
7+
using System;
8+
using System.Collections.Generic;
9+
1010
/// <summary>
1111
/// Shared object pool for roslyn
1212
///

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/ObjectPools/StringBuilderPool.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
// This code was copied from the Roslyn code base (and slightly modified)
5-
using System.Text;
6-
74
namespace StyleCop.Analyzers.Helpers.ObjectPools
85
{
6+
// This code was copied from the Roslyn code base (and slightly modified)
7+
using System.Text;
8+
99
internal static class StringBuilderPool
1010
{
1111
public static StringBuilder Allocate()

StyleCop.Analyzers/StyleCop.Analyzers/NamingRules/SA1310CodeFixProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ namespace StyleCop.Analyzers.NamingRules
88
using System.Text;
99
using System.Threading.Tasks;
1010
using Helpers;
11+
using Helpers.ObjectPools;
1112
using Microsoft.CodeAnalysis;
1213
using Microsoft.CodeAnalysis.CodeActions;
1314
using Microsoft.CodeAnalysis.CodeFixes;
14-
using Helpers.ObjectPools;
1515

1616
/// <summary>
1717
/// Implements a code fix for <see cref="SA1310FieldNamesMustNotContainUnderscore"/>.

StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1027CodeFixProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ namespace StyleCop.Analyzers.SpacingRules
1010
using System.Text;
1111
using System.Threading;
1212
using System.Threading.Tasks;
13+
using Helpers.ObjectPools;
1314
using Microsoft.CodeAnalysis;
1415
using Microsoft.CodeAnalysis.CodeActions;
1516
using Microsoft.CodeAnalysis.CodeFixes;
1617
using Microsoft.CodeAnalysis.Text;
1718
using StyleCop.Analyzers.Helpers;
18-
using Helpers.ObjectPools;
1919

2020
/// <summary>
2121
/// Implements a code fix for <see cref="SA1027TabsMustNotBeUsed"/>.

StyleCop.Analyzers/StyleCop.Analyzers/StyleCop.Analyzers.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@
133133
<Compile Include="Helpers\LocationHelpers.cs" />
134134
<Compile Include="Helpers\NamedTypeHelpers.cs" />
135135
<Compile Include="Helpers\NameSyntaxHelpers.cs" />
136-
<Compile Include="Helpers\ObjectPools\Extensions.cs" />
137-
<Compile Include="Helpers\ObjectPools\ObjectPool.cs" />
138-
<Compile Include="Helpers\ObjectPools\PooledObject.cs" />
136+
<Compile Include="Helpers\ObjectPools\ObjectPool{T}.cs" />
137+
<Compile Include="Helpers\ObjectPools\PooledObject{T}.cs" />
138+
<Compile Include="Helpers\ObjectPools\SharedPoolExtensions.cs" />
139139
<Compile Include="Helpers\ObjectPools\SharedPools.cs" />
140140
<Compile Include="Helpers\ObjectPools\StringBuilderPool.cs" />
141141
<Compile Include="Helpers\RenameHelper.cs" />

0 commit comments

Comments
 (0)