Skip to content

Commit eb510f3

Browse files
Merge pull request #169 from SixLabors/bp/updatesharedinfra
Update shared infrastructure
2 parents 7ffae70 + 6f91008 commit eb510f3

63 files changed

Lines changed: 202 additions & 272 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.

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ indent_style = tab
7575

7676
[*.{cs,csx,cake,vb,vbx}]
7777
# Default Severity for all .NET Code Style rules below
78-
dotnet_analyzer_diagnostic.severity = warning
78+
dotnet_analyzer_diagnostic.category-style.severity = warning
7979

8080
##########################################
8181
# Language Rules

src/ImageSharp.Drawing/Common/Extensions/GraphicsOptionsExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Apache License, Version 2.0.
33

44
using System.Numerics;
5-
using SixLabors.ImageSharp.Drawing.Processing;
65
using SixLabors.ImageSharp.PixelFormats;
76

87
namespace SixLabors.ImageSharp.Drawing

src/ImageSharp.Drawing/Processing/Brushes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Six Labors.
1+
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

44
namespace SixLabors.ImageSharp.Drawing.Processing
@@ -219,4 +219,4 @@ public static PatternBrush BackwardDiagonal(Color foreColor) =>
219219
public static PatternBrush BackwardDiagonal(Color foreColor, Color backColor) =>
220220
new PatternBrush(foreColor, backColor, BackwardDiagonalPattern);
221221
}
222-
}
222+
}

src/ImageSharp.Drawing/Processing/ColorStop.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Six Labors.
1+
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System.Diagnostics;
@@ -32,4 +32,4 @@ public ColorStop(float ratio, in Color color)
3232
/// </summary>
3333
public Color Color { get; }
3434
}
35-
}
35+
}

src/ImageSharp.Drawing/Processing/DrawingOptions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

4-
using System;
54
using System.Numerics;
6-
using SixLabors.ImageSharp.PixelFormats;
7-
using SixLabors.ImageSharp.Processing;
85

96
namespace SixLabors.ImageSharp.Drawing.Processing
107
{

src/ImageSharp.Drawing/Processing/GradientBrush.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
5-
using System.Buffers;
65
using System.Numerics;
7-
using System.Threading;
86
using SixLabors.ImageSharp.Drawing.Utilities;
97
using SixLabors.ImageSharp.Memory;
108
using SixLabors.ImageSharp.PixelFormats;
@@ -197,7 +195,7 @@ protected override void Dispose(bool disposing)
197195
this.isDisposed = true;
198196
}
199197

200-
private (ColorStop from, ColorStop to) GetGradientSegment(float positionOnCompleteGradient)
198+
private (ColorStop From, ColorStop To) GetGradientSegment(float positionOnCompleteGradient)
201199
{
202200
ColorStop localGradientFrom = this.colorStops[0];
203201
ColorStop localGradientTo = default;

src/ImageSharp.Drawing/Processing/GradientRepetitionMode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Six Labors.
1+
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

44
namespace SixLabors.ImageSharp.Drawing.Processing
@@ -34,4 +34,4 @@ public enum GradientRepetitionMode
3434
/// </summary>
3535
DontFill
3636
}
37-
}
37+
}

src/ImageSharp.Drawing/Processing/IPen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Six Labors.
1+
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
@@ -25,4 +25,4 @@ public interface IPen
2525
/// </summary>
2626
ReadOnlySpan<float> StrokePattern { get; }
2727
}
28-
}
28+
}

src/ImageSharp.Drawing/Processing/LinearGradientBrush.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
5-
65
using SixLabors.ImageSharp.PixelFormats;
76

87
namespace SixLabors.ImageSharp.Drawing.Processing

0 commit comments

Comments
 (0)