Skip to content

Commit cf8da83

Browse files
chore: linter updates
1 parent 7e3b2d1 commit cf8da83

20 files changed

Lines changed: 1254 additions & 217 deletions

.editorconfig

Lines changed: 1136 additions & 200 deletions
Large diffs are not rendered by default.

src/BlazorDesktop.Sample/App.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<Router AppAssembly="@typeof(App).Assembly">
1+
@* Licensed to the Blazor Desktop Contributors under one or more agreements. *@
2+
@* The Blazor Desktop Contributors licenses this file to you under the MIT license. *@
3+
@* See the LICENSE file in the project root for more information. *@
4+
5+
<Router AppAssembly="@typeof(App).Assembly">
26
<Found Context="routeData">
37
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
48
<FocusOnNavigate RouteData="@routeData" Selector="h1" />

src/BlazorDesktop.Sample/Data/WeatherForecast.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,29 @@
44

55
namespace BlazorDesktop.Data
66
{
7+
/// <summary>
8+
/// A weather forecast
9+
/// </summary>
710
public class WeatherForecast
811
{
12+
/// <summary>
13+
/// The date
14+
/// </summary>
915
public DateTime Date { get; set; }
1016

17+
/// <summary>
18+
/// The temperature in celcius
19+
/// </summary>
1120
public int TemperatureC { get; set; }
1221

22+
/// <summary>
23+
/// The temperature in fahrenheit
24+
/// </summary>
1325
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
1426

27+
/// <summary>
28+
/// The summary
29+
/// </summary>
1530
public string? Summary { get; set; }
1631
}
1732
}

src/BlazorDesktop.Sample/Data/WeatherForecastService.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,31 @@
44

55
namespace BlazorDesktop.Data
66
{
7+
/// <summary>
8+
/// The weather forecast service
9+
/// </summary>
710
public class WeatherForecastService
811
{
9-
private static readonly string[] Summaries = new[]
12+
/// <summary>
13+
/// The list of summaries
14+
/// </summary>
15+
private static readonly string[] s_summaries = new[]
1016
{
1117
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1218
};
1319

20+
/// <summary>
21+
/// Gets the weather forecast asynchronously
22+
/// </summary>
23+
/// <param name="startDate">The starting date</param>
24+
/// <returns>An array of <see cref="WeatherForecast"/></returns>
1425
public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate)
1526
{
1627
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
1728
{
1829
Date = startDate.AddDays(index),
1930
TemperatureC = Random.Shared.Next(-20, 55),
20-
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
31+
Summary = s_summaries[Random.Shared.Next(s_summaries.Length)]
2132
}).ToArray());
2233
}
2334
}

src/BlazorDesktop.Sample/Pages/Counter.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
@page "/counter"
1+
@* Licensed to the Blazor Desktop Contributors under one or more agreements. *@
2+
@* The Blazor Desktop Contributors licenses this file to you under the MIT license. *@
3+
@* See the LICENSE file in the project root for more information. *@
4+
5+
@page "/counter"
26

37
<PageTitle>Counter</PageTitle>
48

src/BlazorDesktop.Sample/Pages/FetchData.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
@page "/fetchdata"
1+
@* Licensed to the Blazor Desktop Contributors under one or more agreements. *@
2+
@* The Blazor Desktop Contributors licenses this file to you under the MIT license. *@
3+
@* See the LICENSE file in the project root for more information. *@
4+
5+
@page "/fetchdata"
26

37
@using BlazorDesktop.Data
48

src/BlazorDesktop.Sample/Pages/Index.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
@page "/"
1+
@* Licensed to the Blazor Desktop Contributors under one or more agreements. *@
2+
@* The Blazor Desktop Contributors licenses this file to you under the MIT license. *@
3+
@* See the LICENSE file in the project root for more information. *@
4+
5+
@page "/"
26

37
<PageTitle>Index</PageTitle>
48

src/BlazorDesktop.Sample/Shared/MainLayout.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
@inherits LayoutComponentBase
1+
@* Licensed to the Blazor Desktop Contributors under one or more agreements. *@
2+
@* The Blazor Desktop Contributors licenses this file to you under the MIT license. *@
3+
@* See the LICENSE file in the project root for more information. *@
4+
5+
@inherits LayoutComponentBase
26

37
<div class="page">
48
<div class="sidebar">

src/BlazorDesktop.Sample/Shared/MainLayout.razor.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* Licensed to the Blazor Desktop Contributors under one or more agreements. */
2+
/* The Blazor Desktop Contributors licenses this file to you under the MIT license. */
3+
/* See the LICENSE file in the project root for more information. */
4+
15
.page {
26
position: relative;
37
display: flex;

src/BlazorDesktop.Sample/Shared/NavMenu.razor

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<div class="top-row ps-3 navbar navbar-dark">
1+
@* Licensed to the Blazor Desktop Contributors under one or more agreements. *@
2+
@* The Blazor Desktop Contributors licenses this file to you under the MIT license. *@
3+
@* See the LICENSE file in the project root for more information. *@
4+
5+
<div class="top-row ps-3 navbar navbar-dark">
26
<div class="container-fluid">
37
<a class="navbar-brand" href="">BlazorDesktop.Sample</a>
48
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">

0 commit comments

Comments
 (0)