Skip to content

Commit ef3e379

Browse files
authored
Code Quality: dotnet format (#131)
1 parent 32383f1 commit ef3e379

15 files changed

Lines changed: 53 additions & 53 deletions

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFrameworks>$(TargetFrameworks);net8.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77
</Project>

src/MudBlazor.Examples.Data/PeriodicTableService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Reflection;
5-
using System.Threading.Tasks;
65
using System.Text.Json;
6+
using System.Threading.Tasks;
77
using MudBlazor.Examples.Data.Models;
88

99
namespace MudBlazor.Examples.Data
@@ -20,7 +20,7 @@ public async Task<IEnumerable<Element>> GetElements(string search = "")
2020
var elements = new List<Element>();
2121
var key = GetResourceKey(typeof(PeriodicTableService).Assembly, "Elements.json");
2222
using var stream = typeof(PeriodicTableService).Assembly.GetManifestResourceStream(key);
23-
var table = await JsonSerializer.DeserializeAsync<Table>(stream, new JsonSerializerOptions(){ PropertyNameCaseInsensitive = true });
23+
var table = await JsonSerializer.DeserializeAsync<Table>(stream, new JsonSerializerOptions() { PropertyNameCaseInsensitive = true });
2424
foreach (var elementGroup in table.ElementGroups)
2525
{
2626
elements = elements.Concat(elementGroup.Elements).ToList();

src/Try.Tests/SnippetsServiceTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
namespace Tests
22
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Threading.Tasks;
6+
using Microsoft.Extensions.Options;
37
using NUnit.Framework;
4-
using TryMudBlazor.Client.Services;
5-
using TryMudBlazor.Client.Models;
68
using Try.Core;
7-
using Microsoft.Extensions.Options;
8-
using System.Threading.Tasks;
9-
using System.Collections.Generic;
10-
using System;
9+
using TryMudBlazor.Client.Models;
10+
using TryMudBlazor.Client.Services;
1111
using static TryMudBlazor.Server.Utilities.SnippetsEncoder;
1212

1313
/// <summary>
@@ -33,7 +33,7 @@ public void Setup()
3333
var codeFile2 = new CodeFile() { Path = "Test.razor" };
3434
codeFile2.Content = "<h1>Test</h1>";
3535
codeFiles.Add(codeFile2);
36-
snippetsOptions = Options.Create(new SnippetsOptions(){SnippetsService = "api/snippets"});
36+
snippetsOptions = Options.Create(new SnippetsOptions() { SnippetsService = "api/snippets" });
3737

3838
}
3939

@@ -57,10 +57,10 @@ public async Task TestPut()
5757
Console.WriteLine(id);
5858
var savedCodeFiles = await snippetService.GetSnippetContentAsync(id);
5959
List<CodeFile> savedCodeFilesList = new List<CodeFile>(savedCodeFiles);
60-
for (int i = 0; i < codeFiles.Count; i++ )
60+
for (int i = 0; i < codeFiles.Count; i++)
6161
{
6262
Assert.That(codeFiles[i].Path, Is.EqualTo(savedCodeFilesList[i].Path));
63-
Assert.That(codeFiles[i].Content, Is.EqualTo(savedCodeFilesList[i].Content));
63+
Assert.That(codeFiles[i].Content, Is.EqualTo(savedCodeFilesList[i].Content));
6464
}
6565
}
6666

src/TryMudBlazor.Client/Components/CodeEditor.razor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
namespace TryMudBlazor.Client.Components
22
{
33
using System;
4+
using System.Text.RegularExpressions;
45
using System.Threading.Tasks;
5-
using Try.Core;
6-
using TryMudBlazor.Client.Models;
76
using Microsoft.AspNetCore.Components;
87
using Microsoft.JSInterop;
9-
using System.Text.RegularExpressions;
8+
using Try.Core;
9+
using TryMudBlazor.Client.Models;
1010

1111
public partial class CodeEditor : IDisposable
1212
{

src/TryMudBlazor.Client/Components/ErrorList.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Threading.Tasks;
6-
using Try.Core;
76
using Microsoft.AspNetCore.Components;
7+
using Try.Core;
88

99
public partial class ErrorList
1010
{

src/TryMudBlazor.Client/Components/SaveSnippetPopup.razor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ namespace TryMudBlazor.Client.Components
44
using System.Collections.Generic;
55
using System.Linq;
66
using System.Threading.Tasks;
7-
using TryMudBlazor.Client.Services;
8-
using TryMudBlazor.Client.Models;
9-
using Try.Core;
107
using Microsoft.AspNetCore.Components;
118
using Microsoft.JSInterop;
129
using MudBlazor;
10+
using Try.Core;
11+
using TryMudBlazor.Client.Models;
12+
using TryMudBlazor.Client.Services;
1313

1414
public partial class SaveSnippetPopup
1515
{

src/TryMudBlazor.Client/Components/TabManager.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
{
33
using System.Collections.Generic;
44
using System.Threading.Tasks;
5-
using Services;
65
using Microsoft.AspNetCore.Components;
76
using MudBlazor;
7+
using Services;
88

99
public partial class TabManager
1010
{

src/TryMudBlazor.Client/Pages/Repl.razor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
using System.IO;
66
using System.Linq;
77
using System.Threading.Tasks;
8-
using TryMudBlazor.Client.Components;
9-
using TryMudBlazor.Client.Services;
10-
using TryMudBlazor.Client.Models;
11-
using Try.Core;
128
using Microsoft.AspNetCore.Components;
139
using Microsoft.CodeAnalysis;
1410
using Microsoft.JSInterop;
1511
using MudBlazor;
12+
using Try.Core;
13+
using TryMudBlazor.Client.Components;
14+
using TryMudBlazor.Client.Models;
15+
using TryMudBlazor.Client.Services;
1616

1717
public partial class Repl : IDisposable
1818
{
1919
[Inject] private LayoutService LayoutService { get; set; }
20-
20+
2121
private const string MainComponentCodePrefix = "@page \"/__main\"\n";
2222
private const string MainUserPagePath = "/__main";
2323

src/TryMudBlazor.Client/Program.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ namespace TryMudBlazor.Client
66
using System.Reflection;
77
using System.Threading.Tasks;
88
using Blazored.LocalStorage;
9-
using TryMudBlazor.Client.Models;
10-
using TryMudBlazor.Client.Services;
11-
using Try.Core;
9+
using Microsoft.AspNetCore.Components.Web;
1210
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
11+
using Microsoft.AspNetCore.Components.WebAssembly.Services;
1312
using Microsoft.Extensions.Configuration;
1413
using Microsoft.Extensions.DependencyInjection;
1514
using Microsoft.Extensions.Logging;
1615
using Microsoft.JSInterop;
1716
using MudBlazor.Services;
1817
using Services.UserPreferences;
18+
using Try.Core;
1919
using Try.UserComponents;
20-
using Microsoft.AspNetCore.Components.WebAssembly.Services;
21-
using Microsoft.AspNetCore.Components.Web;
20+
using TryMudBlazor.Client.Models;
21+
using TryMudBlazor.Client.Services;
2222

2323
public class Program
2424
{
@@ -97,7 +97,7 @@ private static IJSInProcessRuntime GetJsRuntime()
9797
{
9898
throw new MissingMemberException($"Couldn't find property '{instanceFieldName}' in '{defaultJsRuntimeTypeName}'.");
9999
}
100-
100+
101101
return (IJSInProcessRuntime)instanceField.GetValue(obj: null);
102102
}
103103
}

src/TryMudBlazor.Client/Services/CodeFilesHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
using System.IO;
66
using System.IO.Compression;
77
using System.Text;
8-
using Try.Core;
98
using Microsoft.AspNetCore.WebUtilities;
109
using Microsoft.CodeAnalysis.CSharp;
10+
using Try.Core;
1111

1212
public static class CodeFilesHelper
1313
{

0 commit comments

Comments
 (0)