Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 29 changed files with 120 additions and 106 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Update dependency NI.CSharp.Analyzers to 2.0.28",
"packageName": "@ni/nimble-blazor",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Update dependency NI.CSharp.Analyzers to 2.0.28",
"packageName": "@ni/spright-blazor",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<None Include="packages.lock.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
},
"NI.CSharp.Analyzers": {
"type": "Direct",
"requested": "[2.0.27, )",
"resolved": "2.0.27",
"contentHash": "tMPs5HuiMwvqrWJZo9Q3ShHFg3jDxubAYWLmbb8ooyVchLVNhON1GGYw7Wvg6iaM3AKHpj4t0jv2ZWaDZp/Z9w==",
"requested": "[2.0.28, )",
"resolved": "2.0.28",
"contentHash": "elpqlHHGeZObXFxMoQnIu7yS2kWpXEJemFS7rIp2W5vANPXvmHQPkEiYFRu2P+uhvyHB9DCVQVjv+WjYQ0uPRw==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.3",
"Microsoft.CodeAnalysis.CSharp": "4.2.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "9.0.0",
"Microsoft.VisualStudio.Threading.Analyzers": "17.10.48",
"Roslynator.Analyzers": "4.1.1",
"StyleCop.Analyzers": "1.2.0-beta.556"
Expand Down Expand Up @@ -131,8 +131,8 @@
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "DxiTgkCl3CGq1rYmBX2wjY7XGbxiBdL4J+/AJIAFLKy5z70NxhnVRnPghnicXZ8oF6JKVXlW3xwznRbI3ioEKg=="
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.Extensions.Configuration": {
"type": "Transitive",
Expand Down Expand Up @@ -328,7 +328,7 @@
"type": "Project",
"dependencies": {
"Microsoft.AspNetCore.Components.Web": "[8.0.11, )",
"NI.CSharp.Analyzers": "[2.0.27, )",
"NI.CSharp.Analyzers": "[2.0.28, )",
"NimbleBlazor": "[1.0.0, )",
"SprightBlazor": "[1.0.0, )"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>LRT001;SA1633;NU1701;CA1707;CS0122;CS1573;CS1591,@(RoslynTransition_DisabledRule)</NoWarn>
<NoWarn>LRT001;SA1633;NU1701;CA1707;CS0122;CS1573;CA1515;CS1591,@(RoslynTransition_DisabledRule)</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>LRT001;SA1633;NU1701;CA1707;CS0122;CS1573;CS1591,@(RoslynTransition_DisabledRule)</NoWarn>
<NoWarn>LRT001;SA1633;NU1701;CA1707;CS0122;CS1573;CA1515;CS1591,@(RoslynTransition_DisabledRule)</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand All @@ -36,7 +36,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Wpf" Version="8.0.100" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView" Version="8.0.11" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
},
"NI.CSharp.Analyzers": {
"type": "Direct",
"requested": "[2.0.27, )",
"resolved": "2.0.27",
"contentHash": "tMPs5HuiMwvqrWJZo9Q3ShHFg3jDxubAYWLmbb8ooyVchLVNhON1GGYw7Wvg6iaM3AKHpj4t0jv2ZWaDZp/Z9w==",
"requested": "[2.0.28, )",
"resolved": "2.0.28",
"contentHash": "elpqlHHGeZObXFxMoQnIu7yS2kWpXEJemFS7rIp2W5vANPXvmHQPkEiYFRu2P+uhvyHB9DCVQVjv+WjYQ0uPRw==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.3",
"Microsoft.CodeAnalysis.CSharp": "4.2.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "9.0.0",
"Microsoft.VisualStudio.Threading.Analyzers": "17.10.48",
"Roslynator.Analyzers": "4.1.1",
"StyleCop.Analyzers": "1.2.0-beta.556"
Expand Down Expand Up @@ -124,8 +124,8 @@
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "DxiTgkCl3CGq1rYmBX2wjY7XGbxiBdL4J+/AJIAFLKy5z70NxhnVRnPghnicXZ8oF6JKVXlW3xwznRbI3ioEKg=="
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.Extensions.Configuration": {
"type": "Transitive",
Expand Down Expand Up @@ -335,7 +335,7 @@
"type": "Project",
"dependencies": {
"Microsoft.AspNetCore.Components.Web": "[8.0.11, )",
"NI.CSharp.Analyzers": "[2.0.27, )",
"NI.CSharp.Analyzers": "[2.0.28, )",
"NimbleBlazor": "[1.0.0, )",
"SprightBlazor": "[1.0.0, )"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<None Include="packages.lock.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"net8.0": {
"NI.CSharp.Analyzers": {
"type": "Direct",
"requested": "[2.0.27, )",
"resolved": "2.0.27",
"contentHash": "tMPs5HuiMwvqrWJZo9Q3ShHFg3jDxubAYWLmbb8ooyVchLVNhON1GGYw7Wvg6iaM3AKHpj4t0jv2ZWaDZp/Z9w==",
"requested": "[2.0.28, )",
"resolved": "2.0.28",
"contentHash": "elpqlHHGeZObXFxMoQnIu7yS2kWpXEJemFS7rIp2W5vANPXvmHQPkEiYFRu2P+uhvyHB9DCVQVjv+WjYQ0uPRw==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.3",
"Microsoft.CodeAnalysis.CSharp": "4.2.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "9.0.0",
"Microsoft.VisualStudio.Threading.Analyzers": "17.10.48",
"Roslynator.Analyzers": "4.1.1",
"StyleCop.Analyzers": "1.2.0-beta.556"
Expand Down Expand Up @@ -100,8 +100,8 @@
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "DxiTgkCl3CGq1rYmBX2wjY7XGbxiBdL4J+/AJIAFLKy5z70NxhnVRnPghnicXZ8oF6JKVXlW3xwznRbI3ioEKg=="
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Transitive",
Expand Down Expand Up @@ -208,7 +208,7 @@
"type": "Project",
"dependencies": {
"Microsoft.AspNetCore.Components.Web": "[8.0.11, )",
"NI.CSharp.Analyzers": "[2.0.27, )",
"NI.CSharp.Analyzers": "[2.0.28, )",
"NimbleBlazor": "[1.0.0, )",
"SprightBlazor": "[1.0.0, )"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<None Include="packages.lock.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public IEnumerable<DemoColor> PossibleColors
{
get
{
return (IEnumerable<DemoColor>)Enum.GetValues(typeof(DemoColor));
return Enum.GetValues<DemoColor>();
}
}

Expand Down Expand Up @@ -179,7 +179,7 @@ private async Task UpdateDelayedHierarchyTableAsync(bool setData = true)
private string DrawerLocationAsString
{
get => _drawerLocation.ToString();
set => _drawerLocation = (DrawerLocation)Enum.Parse(typeof(DrawerLocation), value);
set => _drawerLocation = Enum.Parse<DrawerLocation>(value);
}

public async Task OpenDialogAsync()
Expand Down Expand Up @@ -346,7 +346,7 @@ public SimpleTableRecord(
public void UpdateColor(DemoColor newColor)
{
Color = newColor;
ColorString = Enum.GetName(typeof(DemoColor), newColor)!;
ColorString = Enum.GetName(newColor)!;
}

public string Id { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial class ExampleHeader
private string ThemeAsString
{
get => Theme.ToString();
set => Theme = (Theme)Enum.Parse(typeof(Theme), value);
set => Theme = Enum.Parse<Theme>(value);
}

private async void OnUserThemeChange(string newTheme)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
},
"NI.CSharp.Analyzers": {
"type": "Direct",
"requested": "[2.0.27, )",
"resolved": "2.0.27",
"contentHash": "tMPs5HuiMwvqrWJZo9Q3ShHFg3jDxubAYWLmbb8ooyVchLVNhON1GGYw7Wvg6iaM3AKHpj4t0jv2ZWaDZp/Z9w==",
"requested": "[2.0.28, )",
"resolved": "2.0.28",
"contentHash": "elpqlHHGeZObXFxMoQnIu7yS2kWpXEJemFS7rIp2W5vANPXvmHQPkEiYFRu2P+uhvyHB9DCVQVjv+WjYQ0uPRw==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.3",
"Microsoft.CodeAnalysis.CSharp": "4.2.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "9.0.0",
"Microsoft.VisualStudio.Threading.Analyzers": "17.10.48",
"Roslynator.Analyzers": "4.1.1",
"StyleCop.Analyzers": "1.2.0-beta.556"
Expand Down Expand Up @@ -101,8 +101,8 @@
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "DxiTgkCl3CGq1rYmBX2wjY7XGbxiBdL4J+/AJIAFLKy5z70NxhnVRnPghnicXZ8oF6JKVXlW3xwznRbI3ioEKg=="
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Transitive",
Expand Down
2 changes: 1 addition & 1 deletion packages/blazor-workspace/NimbleBlazor/NimbleBlazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<ItemGroup>
<PackageReference Include="Apache.Arrow" Version="[18.0.0]" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.11" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" PrivateAssets="all" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions packages/blazor-workspace/NimbleBlazor/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
},
"NI.CSharp.Analyzers": {
"type": "Direct",
"requested": "[2.0.27, )",
"resolved": "2.0.27",
"contentHash": "tMPs5HuiMwvqrWJZo9Q3ShHFg3jDxubAYWLmbb8ooyVchLVNhON1GGYw7Wvg6iaM3AKHpj4t0jv2ZWaDZp/Z9w==",
"requested": "[2.0.28, )",
"resolved": "2.0.28",
"contentHash": "elpqlHHGeZObXFxMoQnIu7yS2kWpXEJemFS7rIp2W5vANPXvmHQPkEiYFRu2P+uhvyHB9DCVQVjv+WjYQ0uPRw==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.3",
"Microsoft.CodeAnalysis.CSharp": "4.2.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "9.0.0",
"Microsoft.VisualStudio.Threading.Analyzers": "17.10.48",
"Roslynator.Analyzers": "4.1.1",
"StyleCop.Analyzers": "1.2.0-beta.556"
Expand Down Expand Up @@ -102,8 +102,8 @@
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "DxiTgkCl3CGq1rYmBX2wjY7XGbxiBdL4J+/AJIAFLKy5z70NxhnVRnPghnicXZ8oF6JKVXlW3xwznRbI3ioEKg=="
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Transitive",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.11" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" PrivateAssets="all" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions packages/blazor-workspace/SprightBlazor/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
},
"NI.CSharp.Analyzers": {
"type": "Direct",
"requested": "[2.0.27, )",
"resolved": "2.0.27",
"contentHash": "tMPs5HuiMwvqrWJZo9Q3ShHFg3jDxubAYWLmbb8ooyVchLVNhON1GGYw7Wvg6iaM3AKHpj4t0jv2ZWaDZp/Z9w==",
"requested": "[2.0.28, )",
"resolved": "2.0.28",
"contentHash": "elpqlHHGeZObXFxMoQnIu7yS2kWpXEJemFS7rIp2W5vANPXvmHQPkEiYFRu2P+uhvyHB9DCVQVjv+WjYQ0uPRw==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.3",
"Microsoft.CodeAnalysis.CSharp": "4.2.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "9.0.0",
"Microsoft.VisualStudio.Threading.Analyzers": "17.10.48",
"Roslynator.Analyzers": "4.1.1",
"StyleCop.Analyzers": "1.2.0-beta.556"
Expand Down Expand Up @@ -96,8 +96,8 @@
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "DxiTgkCl3CGq1rYmBX2wjY7XGbxiBdL4J+/AJIAFLKy5z70NxhnVRnPghnicXZ8oF6JKVXlW3xwznRbI3ioEKg=="
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Transitive",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<PropertyGroup>
<NoWarn>CA1716;CS1591</NoWarn>
<NoWarn>CA1716;CS1591;CA1515</NoWarn>
<AppDesignerFolder>Properties</AppDesignerFolder>
</PropertyGroup>

Expand All @@ -22,7 +22,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="Microsoft.Playwright" Version="[1.44.0]" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" />
<PackageReference Include="System.ComponentModel" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.extensibility.execution" Version="2.9.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
},
"NI.CSharp.Analyzers": {
"type": "Direct",
"requested": "[2.0.27, )",
"resolved": "2.0.27",
"contentHash": "tMPs5HuiMwvqrWJZo9Q3ShHFg3jDxubAYWLmbb8ooyVchLVNhON1GGYw7Wvg6iaM3AKHpj4t0jv2ZWaDZp/Z9w==",
"requested": "[2.0.28, )",
"resolved": "2.0.28",
"contentHash": "elpqlHHGeZObXFxMoQnIu7yS2kWpXEJemFS7rIp2W5vANPXvmHQPkEiYFRu2P+uhvyHB9DCVQVjv+WjYQ0uPRw==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.3",
"Microsoft.CodeAnalysis.CSharp": "4.2.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "8.0.0",
"Microsoft.CodeAnalysis.NetAnalyzers": "9.0.0",
"Microsoft.VisualStudio.Threading.Analyzers": "17.10.48",
"Roslynator.Analyzers": "4.1.1",
"StyleCop.Analyzers": "1.2.0-beta.556"
Expand Down Expand Up @@ -196,8 +196,8 @@
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "DxiTgkCl3CGq1rYmBX2wjY7XGbxiBdL4J+/AJIAFLKy5z70NxhnVRnPghnicXZ8oF6JKVXlW3xwznRbI3ioEKg=="
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.CodeCoverage": {
"type": "Transitive",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.27" />
<PackageReference Include="NI.CSharp.Analyzers" Version="2.0.28" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;

namespace NimbleBlazor.Tests.Acceptance.Client;
public static class Program
internal static class Program
{
public static async Task Main(string[] args)
{
Expand Down
Loading

0 comments on commit 9857f98

Please sign in to comment.