Skip to content

Commit e08a490

Browse files
Update dependencies and a bit more (#237)
* Update packages * Update more dependencies
1 parent 41ecf06 commit e08a490

17 files changed

+59
-32
lines changed

IntelliTect.Analyzer/IntelliTect.Analyzer.Integration.Tests/IntelliTect.Analyzer.Integration.Tests.csproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
10-
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
11-
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
12-
<PackageReference Include="coverlet.collector" Version="3.1.2">
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
10+
<PackageReference Include="MSTest.TestAdapter" Version="3.0.1" />
11+
<PackageReference Include="MSTest.TestFramework" Version="3.0.1" />
12+
<PackageReference Include="coverlet.collector" Version="3.2.0">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>
1616

17-
<PackageReference Include="Microsoft.Build.Locator" Version="1.4.1" />
18-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" />
19-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />
20-
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.1.0" />
21-
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.1.0" />
17+
<PackageReference Include="Microsoft.Build.Locator" Version="1.5.5" />
18+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" />
19+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.4.0" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.4.0" />
21+
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.4.0" />
2222
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

IntelliTect.Analyzer/IntelliTect.Analyzer.Test/AsyncVoidTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public async void Sample() { }
5353
var expected = new DiagnosticResult
5454
{
5555
Id = "INTL0201",
56-
Message = "Async methods should not return void.",
56+
Message = "Async methods should not return void",
5757
Severity = DiagnosticSeverity.Warning,
5858
Locations =
5959
new[] {

IntelliTect.Analyzer/IntelliTect.Analyzer.Test/DateTimeConversionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static void Main(string[] args)
3030
{
3131
Id = "INTL0202",
3232
Severity = DiagnosticSeverity.Warning,
33-
Message = "Using the symbol 'DateTimeOffset.implicit operator DateTimeOffset(DateTime)' can result in unpredictable behavior.",
33+
Message = "Using the symbol 'DateTimeOffset.implicit operator DateTimeOffset(DateTime)' can result in unpredictable behavior",
3434
Locations =
3535
new[] {
3636
new DiagnosticResultLocation("Test0.cs", 10, 38)
@@ -71,7 +71,7 @@ static void Main(string[] args)
7171
{
7272
Id = "INTL0202",
7373
Severity = DiagnosticSeverity.Warning,
74-
Message = "Using the symbol 'DateTimeOffset.implicit operator DateTimeOffset(DateTime)' can result in unpredictable behavior.",
74+
Message = "Using the symbol 'DateTimeOffset.implicit operator DateTimeOffset(DateTime)' can result in unpredictable behavior",
7575
Locations =
7676
new[] {
7777
new DiagnosticResultLocation("Test0.cs", 17, 17)

IntelliTect.Analyzer/IntelliTect.Analyzer.Test/FavorEnumeratorDirectoryCallsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static void Main(string[] args)
3535
{
3636
Id = "INTL0301",
3737
Severity = DiagnosticSeverity.Info,
38-
Message = "Favor using the method `EnumerateFiles` over the `GetFiles` method.",
38+
Message = "Favor using the method `EnumerateFiles` over the `GetFiles` method",
3939
Locations =
4040
new[] {
4141
new DiagnosticResultLocation("Test0.cs", 11, 30)
@@ -103,7 +103,7 @@ static void Main(string[] args)
103103
{
104104
Id = "INTL0302",
105105
Severity = DiagnosticSeverity.Info,
106-
Message = "Favor using the method `EnumerateDirectories` over the `GetDirectories` method.",
106+
Message = "Favor using the method `EnumerateDirectories` over the `GetDirectories` method",
107107
Locations =
108108
new[] {
109109
new DiagnosticResultLocation("Test0.cs", 11, 30)

IntelliTect.Analyzer/IntelliTect.Analyzer.Test/IntelliTect.Analyzer.Tests.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1212
</PackageReference>
13-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />
14-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6" />
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
16-
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
17-
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
13+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.4.0" />
14+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.0">
15+
<PrivateAssets>all</PrivateAssets>
16+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
17+
</PackageReference>
18+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
19+
<PackageReference Include="MSTest.TestAdapter" Version="3.0.1" />
20+
<PackageReference Include="MSTest.TestFramework" Version="3.0.1" />
1821
</ItemGroup>
1922

2023
<ItemGroup>

IntelliTect.Analyzer/IntelliTect.Analyzer.Test/UnusedLocalVariableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void Descriptor_ContainsExpectedValues()
140140
Assert.AreEqual("Flow", diagnostic.Category);
141141
Assert.AreEqual(DiagnosticSeverity.Info, diagnostic.DefaultSeverity);
142142
Assert.AreEqual(true, diagnostic.IsEnabledByDefault);
143-
Assert.AreEqual("All local variables should be accessed, or named with underscores to indicate they are unused", diagnostic.Description);
143+
Assert.AreEqual("All local variables should be accessed, or named with underscores to indicate they are unused.", diagnostic.Description);
144144
Assert.AreEqual("https://github.com/IntelliTect/CodingGuidelines", diagnostic.HelpLinkUri);
145145
}
146146

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; Shipped analyzer releases
2+
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3+
4+
## Release 1.0
5+
6+
### New Rules
7+
8+
Rule ID | Category | Severity | Notes
9+
--------|----------|----------|--------------------
10+
INTL0001 | Naming | Warning | NamingFieldPascalUnderscore
11+
INTL0002 | Naming | Warning | NamingPropertyPascal
12+
INTL0003 | Naming | Warning | NamingMethodPascal
13+
INTL0101 | Formatting | Warning | AttributesOnSeparateLines
14+
INTL0201 | Reliability | Warning | AsyncVoid
15+
INTL0202 | Reliability | Warning | BanImplicitDateTimeToDateTimeOffsetConversion
16+
INTL0301 | Performance | Info | FavorDirectoryEnumerationCalls
17+
INTL0302 | Performance | Info | FavorDirectoryEnumerationCalls
18+
INTL0303 | Flow | Info | UnusedLocalVariable, [Documentation](https://github.com/IntelliTect/CodingGuidelines)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
; Unshipped analyzer release
2+
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3+

IntelliTect.Analyzer/IntelliTect.Analyzer/Analyzers/AsyncVoid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class AsyncVoid : DiagnosticAnalyzer
1010
{
1111
public const string DiagnosticId = "INTL0201";
1212
private const string Title = "Async void methods";
13-
private const string MessageFormat = "Async methods should not return void.";
13+
private const string MessageFormat = "Async methods should not return void";
1414
private const string Description = "Async methods must return either Task or Task<T>.";
1515
private const string Category = "Reliability";
1616
private static readonly string _HelpLinkUri = DiagnosticUrlBuilder.GetUrl(Title,

IntelliTect.Analyzer/IntelliTect.Analyzer/Analyzers/BanImplicitDateTimeToDateTimeOffsetConversion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static class Rule202
5555
{
5656
internal const string DiagnosticId = "INTL0202";
5757
internal const string Title = "Do not use implicit conversion from `DateTime` to `DateTimeOffset`";
58-
internal const string MessageFormat = "Using the symbol 'DateTimeOffset.implicit operator DateTimeOffset(DateTime)' can result in unpredictable behavior.";
58+
internal const string MessageFormat = "Using the symbol 'DateTimeOffset.implicit operator DateTimeOffset(DateTime)' can result in unpredictable behavior";
5959
#pragma warning disable INTL0001 // Allow field to not be prefixed with an underscore to match the style
6060
internal static readonly string HelpMessageUri = DiagnosticUrlBuilder.GetUrl(Title,
6161
DiagnosticId);

0 commit comments

Comments
 (0)