Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Automatic update of Microsoft.CodeAnalysis.FxCopAnalyzers to 3.3.0 (N…
Browse files Browse the repository at this point in the history
…uKeeperDotNet#1022)

* 📦 Automatic update of Microsoft.CodeAnalysis.FxCopAnalyzers to 3.3.0

* Fix errors flagged by analysis
  • Loading branch information
skolima authored and CrispyDrone committed Sep 1, 2020
1 parent 7ab8e2c commit bc44d08
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
<RepositoryUrl>https://github.com/NuKeeperDotNet/NuKeeper.git</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0" PrivateAssets="All" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace NuKeeper.Abstractions.Tests.Configuration
[TestFixture]
public class FileSettingsReaderTests
{
private string _uniqueTemporaryFolder = null;
private string _uniqueTemporaryFolder;

[SetUp]
public void Setup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace NuKeeper.Inspection.Tests.Sources
{
public class NugetSourcesReaderTests
{
private IFolder _uniqueTemporaryFolder = null;
private IFolder _uniqueTemporaryFolder;

[SetUp]
public void Setup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void DumpLogToTestOutput()
{
var test = TestContext.CurrentContext.Test.Name;

if (_buffer.Count > 0)
if (!_buffer.IsEmpty)
{
TestContext.Error.WriteLine($"{test}: NuKeeper Log:");
while (_buffer.TryDequeue(out var line))
Expand Down
2 changes: 1 addition & 1 deletion NuKeeper.Integration.Tests/LogHelpers/NugetTestLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void DumpLogToTestOutput()
{
var test = TestContext.CurrentContext.Test.Name;

if (_buffer.Count > 0)
if (!_buffer.IsEmpty)
{
TestContext.Error.WriteLine($"{test}: NuKeeper Log:");
while (_buffer.TryDequeue(out var line))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class DotNetUpdatePackageCommandTests : TestWithFailureLogging
<Import Project=""$(MSBuildToolsPath)\Microsoft.CSharp.targets"" />
</Project>";

private IFolder _uniqueTemporaryFolder = null;
private IFolder _uniqueTemporaryFolder;

[SetUp]
public void Setup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class NuGetUpdatePackageCommandTests : TestWithFailureLogging
private readonly string _nugetConfig =
@"<configuration><config><add key=""repositoryPath"" value="".\packages"" /></config></configuration>";

private IFolder _uniqueTemporaryFolder = null;
private IFolder _uniqueTemporaryFolder;

[SetUp]
public void Setup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class RepositoryScannerTests : TestWithFailureLogging
</ItemGroup>
</Project>";

private IFolder _uniqueTemporaryFolder = null;
private IFolder _uniqueTemporaryFolder;

[SetUp]
public void Setup()
Expand Down
2 changes: 1 addition & 1 deletion NuKeeper.Update/Selection/UpdateSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class UpdateSelection : IUpdateSelection
{
private readonly INuKeeperLogger _logger;
private FilterSettings _settings;
private DateTime? _maxPublishedDate = null;
private DateTime? _maxPublishedDate;

public UpdateSelection(INuKeeperLogger logger)
{
Expand Down

0 comments on commit bc44d08

Please sign in to comment.