-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Namespace always file level * Always primary constructor * Inline null checks * Enforce naming * Fix spelling mistakes * simplify default initializations * Add static and readonly where valid * Remove unnecessary usings. * No Functional change * Change private static to PascalCase * Add if multiline brackets. Align editorconfig with serval. * TreatWarningsAsErrors
- Loading branch information
1 parent
525950f
commit e064c4f
Showing
241 changed files
with
20,431 additions
and
20,131 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-dotnettools.csharp", | ||
"ms-dotnettools.csdevkit", | ||
"streetsidesoftware.code-spell-checker", | ||
"csharpier.csharpier-vscode", | ||
"editorconfig.editorconfig", | ||
"mhutchie.git-graph", | ||
"tim-koehler.helm-intellisense", | ||
"ms-dotnettools.vscodeintellicode-csharp", | ||
"redhat.vscode-yaml", | ||
"wycliffeassociates.usfmvscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
namespace Microsoft.Extensions.DependencyInjection; | ||
|
||
internal class MachineBuilder : IMachineBuilder | ||
internal class MachineBuilder(IServiceCollection services, IConfiguration? configuration) : IMachineBuilder | ||
{ | ||
public MachineBuilder(IServiceCollection services, IConfiguration? configuration) | ||
{ | ||
Services = services; | ||
Configuration = configuration; | ||
} | ||
|
||
public IServiceCollection Services { get; } | ||
public IConfiguration? Configuration { get; } | ||
public IServiceCollection Services { get; } = services; | ||
public IConfiguration? Configuration { get; } = configuration; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
using System; | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
namespace SIL.Machine.AspNetCore.Models | ||
public class ModelDownloadUrl | ||
{ | ||
public class ModelDownloadUrl | ||
{ | ||
public string Url { get; set; } = default!; | ||
public int ModelRevision { get; set; } = default!; | ||
public DateTime ExipiresAt { get; set; } = default!; | ||
} | ||
public string Url { get; set; } = default!; | ||
public int ModelRevision { get; set; } = default!; | ||
public DateTime ExpiresAt { get; set; } = default!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
src/SIL.Machine.AspNetCore/Services/CancellationInterceptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.