Skip to content

Commit d778a69

Browse files
committed
Consolidated changes from #1334
1 parent fc5fd58 commit d778a69

File tree

725 files changed

+5154
-5386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

725 files changed

+5154
-5386
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ assignees: ''
88
---
99

1010
## Describe the bug
11-
A clear and concise description of the bug.
11+
A clear and concise description of the bug.
1212

13-
## Steps to reproduce
13+
## Steps to reproduce
1414
Steps to reproduce the behavior:
1515
1.
1616
2.
@@ -20,9 +20,9 @@ A clear and concise description of what you expected to happen.
2020

2121
## Environment (please complete the following information):
2222
- Steeltoe Version [e.g. 2.3.0]
23-
- Platform: [e.g. Cloud Foundry, Azure, etc.)
23+
- Platform: [e.g. Cloud Foundry, Azure, etc.)
2424
- OS: [e.g. Windows, Linux, Mac OSX]
25-
- .NET Version [e.g. .NET Core 2.1.0, .NET Framework 4.7.1, etc.]
25+
- .NET Version [e.g. .NET Core 2.1.0, .NET Framework 4.7.1, etc.]
2626
- Any other library versions to note
2727

2828
## Screenshots

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ assignees: ''
1111
_Enter your question or feedback here_
1212

1313
## Environment (please complete the following information):
14-
- .NET Version [e.g. .NET Core 3.1.4, .NET Framework 4.7.1, etc.]
14+
- .NET Version [e.g. .NET Core 3.1.4, .NET Framework 4.7.1, etc.]
1515
- Steeltoe Version [e.g. 3.0.1]
1616

1717
## Additional context or links

build/pr-code-cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
displayName: Push changes
8383
condition: and(succeeded(), eq(variables['hasChangesToCommit'], 'True'))
8484
env:
85-
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
85+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
8686
inputs:
8787
targetType: 'inline'
8888
script: |
@@ -112,7 +112,7 @@ jobs:
112112
$statusMessage = "<samp>Code cleanup was canceled, no changes were pushed.</samp>"
113113
}
114114
elseif ($env:AGENT_JOBSTATUS -eq "Failed") {
115-
$url = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
115+
$url = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
116116
$statusMessage = "<samp>Code cleanup failed to reformat and push changes.</samp><p>View details [here]($url).</p>"
117117
}
118118
else {

build/sign-packages.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $appSettings = Join-Path $currentDirectory 'appsettings.json'
1616
$nupkgs = Get-ChildItem $env:ArtifactDirectory/Steeltoe*.*nupkg -recurse | Select-Object -ExpandProperty FullName
1717

1818
foreach ($nupkg in $nupkgs) {
19-
./SignClient 'sign' -c $appSettings -i $nupkg -r $env:SignClientUser -s $env:SignClientSecret -n 'Steeltoe' -d 'Steeltoe' -u 'https://github.com/SteeltoeOSS'
19+
./SignClient 'sign' -c $appSettings -i $nupkg -r $env:SignClientUser -s $env:SignClientSecret -n 'Steeltoe' -d 'Steeltoe' -u 'https://github.com/SteeltoeOSS'
2020
}
2121

2222
Write-Host "Sign-packages completed."

build/templates/consolidate-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
displayName: Publish code coverage to Azure DevOps
2929
inputs:
3030
codeCoverageTool: Cobertura
31-
summaryFileLocation: $(Build.ArtifactStagingDirectory)/CodeCoverage/Cobertura.xml
31+
summaryFileLocation: $(Build.ArtifactStagingDirectory)/CodeCoverage/Cobertura.xml

build/verify-code-style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
# We are in detached head (the merge result), so there's no need to account for an out-of-date PR.
5252
$baseCommitHash = git rev-parse origin/$env:SYSTEM_PULLREQUEST_TARGETBRANCH
5353
if ($LastExitCode -ne 0) { throw "Command 'git rev-parse (1)' failed with exit code $LastExitCode." }
54-
54+
5555
$headCommitHash = git rev-parse HEAD
5656
if ($LastExitCode -ne 0) { throw "Command 'git rev-parse (2)' failed with exit code $LastExitCode." }
57-
57+
5858
Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
5959
dotnet regitlint -s src/Steeltoe.All.sln --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="Steeltoe Full Cleanup" --jb --properties:Configuration=Release --jb --properties:NuGetAudit=false --jb --verbosity=WARN --fail-on-diff --print-diff -f commits -a $headCommitHash -b $baseCommitHash
6060
}

coverlet.runsettings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<DataCollectors>
55
<DataCollector friendlyName="XPlat Code Coverage">
66
<Configuration>
7-
<Format>opencover</Format>
7+
<Format>opencover</Format>
88
<Exclude>[*.Test*]*,[*]Microsoft.Diagnostics*</Exclude>
99
<Include>[Steeltoe.*]*</Include>
1010
<ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute</ExcludeByAttribute>
@@ -15,4 +15,4 @@
1515
</DataCollector>
1616
</DataCollectors>
1717
</DataCollectionRunSettings>
18-
</RunSettings>
18+
</RunSettings>

shared-package.props

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,11 @@
4646

4747
<ItemGroup>
4848
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(SourceLinkGitHubVersion)" PrivateAssets="All" />
49+
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="$(PublicApiAnalyzersVersion)" PrivateAssets="All" />
4950
</ItemGroup>
5051

5152
<Target Name="ValidatePackage" AfterTargets="BeforeBuild">
5253
<Error Text="The 'Description' property must be set for packable project '$(MSBuildProjectName)'." Condition="'$(Description)' == ''" />
5354
<Error Text="The 'PackageTags' property must be set for packable project '$(MSBuildProjectName)'." Condition="'$(PackageTags)' == ''" />
5455
</Target>
55-
56-
<ItemGroup Condition="!$(MSBuildProjectName.StartsWith('Steeltoe.Common'))">
57-
<!--
58-
Remove the condition above after public API review of Steeltoe.Common.
59-
-->
60-
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="$(PublicApiAnalyzersVersion)" PrivateAssets="All" />
61-
</ItemGroup>
62-
63-
<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('Steeltoe.Common'))">
64-
<!--
65-
Remove the condition above after public API review of Steeltoe.Common.
66-
-->
67-
<NoWarn>$(NoWarn);SA1401;S1168;S2360;S3900;S3956;S4004;S4023</NoWarn>
68-
</PropertyGroup>
6956
</Project>

shared.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<LangVersion>latest</LangVersion>
4+
<Nullable>enable</Nullable>
45
<ImplicitUsings>enable</ImplicitUsings>
56
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
67
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>

src/Bootstrap/src/AutoConfiguration/BootstrapScanner.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ internal sealed class BootstrapScanner
4747

4848
public BootstrapScanner(HostBuilderWrapper wrapper, IReadOnlySet<string> assemblyNamesToExclude, ILoggerFactory loggerFactory)
4949
{
50-
ArgumentGuard.NotNull(wrapper);
51-
ArgumentGuard.NotNull(assemblyNamesToExclude);
52-
ArgumentGuard.NotNull(loggerFactory);
50+
ArgumentNullException.ThrowIfNull(wrapper);
51+
ArgumentNullException.ThrowIfNull(assemblyNamesToExclude);
52+
ArgumentGuard.ElementsNotNullOrWhiteSpace(assemblyNamesToExclude);
53+
ArgumentNullException.ThrowIfNull(loggerFactory);
5354

5455
_wrapper = wrapper;
5556
_loader = new AssemblyLoader(assemblyNamesToExclude);
@@ -61,7 +62,7 @@ public void ConfigureSteeltoe()
6162
{
6263
if (_loggerFactory is IBootstrapLoggerFactory)
6364
{
64-
BootstrapLoggerHostedService.Register(_loggerFactory, _wrapper);
65+
BootstrapLoggerHostedService.Register(_wrapper);
6566
}
6667

6768
if (!WireIfLoaded(WireConfigServer, SteeltoeAssemblyNames.ConfigurationConfigServer))

0 commit comments

Comments
 (0)