Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump the all group with 2 updates #181

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.3" />
<PackageReference Include="FluentAssertions" Version="6.12.2" />
<PackageReference Include="FluentAssertions" Version="7.0.0" />
<PackageReference Include="System.Memory" Version="4.6.0" />
</ItemGroup>


Unchanged files with check annotations Beta

path.AddRect(bounds);
return path;
}

Check warning on line 19 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
var diameter = radius * 2;
var size = new SKSize(diameter, diameter);
var arc = SKRect.Create(bounds.Location, size);
int size = 128)
{
backgroundBrush = backgroundBrush ?? throw new ArgumentNullException(nameof(backgroundBrush));

Check warning on line 62 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
var bitmap = baseImage == null
? new SKBitmap(size, size)
: baseImage;
using var graphics = new SKCanvas(bitmap);
//graphics.CompositingQuality = CompositingQuality.HighQuality;
//graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;

Check warning on line 69 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
var borderOffset = pen == null
? 0.0F
: pen.StrokeWidth / 2;
var rect = rectangle ?? new SKRect(borderOffset, borderOffset, size - borderOffset * 2, size - borderOffset * 2);
backgroundBrush.Style = SKPaintStyle.Fill;
switch (backgroundType)

Check warning on line 75 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Populate switch (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0010)
{
case BackgroundType.Rectangle:
graphics.DrawRect(
rect: rect,
paint: backgroundBrush);
break;

Check warning on line 82 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
case BackgroundType.RoundedRectangle:
{
using var path = GetRoundedRectGraphicsPath(rect, cornerRadius);
paint: backgroundBrush);
}
break;

Check warning on line 91 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
case BackgroundType.Ellipse:
graphics.DrawOval(
rect: rect,
paint: backgroundBrush);
break;
}

Check warning on line 98 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
if (pen != null)
{
switch (backgroundType)
rect: SKRect.Create((int)rect.Left, (int)rect.Top, (int)rect.Width, (int)rect.Height),
paint: pen);
break;

Check warning on line 108 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
case BackgroundType.RoundedRectangle:
{
using var path = GetRoundedRectGraphicsPath(rect, cornerRadius);
paint: pen);
}
break;

Check warning on line 117 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
case BackgroundType.Ellipse:
graphics.DrawOval(
rect: rect,
{
var bounds = new SKRect();
_ = foregroundBrush.MeasureText(text, ref bounds);

Check warning on line 134 in src/libs/H.GeneratedIcons.SkiaSharp/SkiaSharpIconGenerator.cs

GitHub Actions / Build and test PR / Build, test and publish

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
graphics.DrawText(
text: text,
font: font,