Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou committed Oct 18, 2024
1 parent 9bf3d18 commit b4d2a00
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Meziantou.DotNet.CodingStandard.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<repository type="git" url="$RepositoryUrl$" commit="$RepositoryCommit$" branch="$RepositoryBranch$" />
<dependencies>
<dependency id="Meziantou.Analyzer" version="2.0.168" />
<dependency id="Meziantou.Analyzer" version="2.0.172" />
<dependency id="Microsoft.CodeAnalysis.BannedApiAnalyzers" version="3.3.4" />
</dependencies>
</metadata>
Expand Down
20 changes: 20 additions & 0 deletions src/configuration/Analyzer.Meziantou.Analyzer.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -801,3 +801,23 @@ dotnet_diagnostic.MA0159.severity = suggestion
# Enabled: True, Severity: suggestion
dotnet_diagnostic.MA0160.severity = suggestion

# MA0161: UseShellExecute must be explicitly set
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0161.md
# Enabled: False, Severity: suggestion
dotnet_diagnostic.MA0161.severity = none

# MA0162: Use Process.Start overload with ProcessStartInfo
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0162.md
# Enabled: False, Severity: suggestion
dotnet_diagnostic.MA0162.severity = none

# MA0163: UseShellExecute must be false when redirecting standard input or output
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0163.md
# Enabled: True, Severity: warning
dotnet_diagnostic.MA0163.severity = warning

# MA0164: Use parentheses to not pattern clearer
# Help link: https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0164.md
# Enabled: True, Severity: warning
dotnet_diagnostic.MA0164.severity = warning

15 changes: 15 additions & 0 deletions tests/Meziantou.DotNet.CodingStandard.Tests/CodingStandardTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@ static void A()
Assert.False(data.HasError());
}

[Fact]
public async Task CodingStyle_ExpressionIsNeverUsed()
{
await using var project = new ProjectBuilder(fixture, testOutputHelper, this);
project.AddCsprojFile();
project.AddFile("Program.cs", """
var sb = new System.Text.StringBuilder();
sb.AppendLine();

""");
var data = await project.BuildAndGetOutput(["--configuration", "Release"]);
Assert.False(data.HasWarning());
Assert.False(data.HasError());
}

[Fact]
public async Task LocalEditorConfigCanOverrideSettings()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="Meziantou.Framework" Version="3.0.41" />
<PackageReference Include="Meziantou.Framework.TemporaryDirectory" Version="1.0.9" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="NuGet.Versioning" Version="6.11.0" />
<PackageReference Include="NuGet.Versioning" Version="6.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 2 additions & 2 deletions tools/ConfigFilesGenerator/ConfigFilesGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

<ItemGroup>
<PackageReference Include="Meziantou.Framework.FullPath" Version="1.0.13" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0-beta1.24415.1">
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0-2.final" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0-2.final" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.12.0-2.final" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.12.0-2.final" />
<PackageReference Include="NuGet.Protocol" Version="6.11.0" />
<PackageReference Include="NuGet.Protocol" Version="6.11.1" />
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
</ItemGroup>

Expand Down

0 comments on commit b4d2a00

Please sign in to comment.