Skip to content

Commit adff2a9

Browse files
authored
Merge pull request #1273 from json-api-dotnet/merge-master-v5.2.0-into-openapi
Merge master v5.2.0 into openapi
2 parents d82c754 + 47d1ee3 commit adff2a9

File tree

187 files changed

+5100
-1517
lines changed

Some content is hidden

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

187 files changed

+5100
-1517
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"jetbrains.resharper.globaltools": {
6-
"version": "2022.2.4",
6+
"version": "2023.1.0",
77
"commands": [
88
"jb"
99
]
@@ -21,13 +21,13 @@
2121
]
2222
},
2323
"dotnet-reportgenerator-globaltool": {
24-
"version": "5.1.15",
24+
"version": "5.1.19",
2525
"commands": [
2626
"reportgenerator"
2727
]
2828
},
2929
"docfx": {
30-
"version": "2.60.2",
30+
"version": "2.62.2",
3131
"commands": [
3232
"docfx"
3333
]

.editorconfig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,18 @@ csharp_indent_case_contents_when_block = false
6666
csharp_preserve_single_line_statements = false
6767

6868
# 'var' usage preferences
69-
csharp_style_var_for_built_in_types = false:suggestion
70-
csharp_style_var_when_type_is_apparent = true:suggestion
71-
csharp_style_var_elsewhere = false:suggestion
69+
csharp_style_var_for_built_in_types = false:none
70+
csharp_style_var_when_type_is_apparent = true:none
71+
csharp_style_var_elsewhere = false:none
7272

7373
# Parentheses preferences
7474
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:suggestion
7575
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
7676
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:suggestion
7777

78+
# Expression value is never used
79+
dotnet_diagnostic.IDE0058.severity = none
80+
7881
#### Naming Style ####
7982

8083
dotnet_diagnostic.IDE1006.severity = warning

.github/ISSUE_TEMPLATE/question.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@ assignees: ''
77

88
---
99

10+
<!--
11+
Remember that no-one is getting paid to answer your question. You're basically asking other people to give up their time to help you out of the goodness of their heart – it's up to you to do all you can to make that as simple as possible, so read http://tinyurl.com/stack-checklist first.
12+
-->
13+
1014
#### SUMMARY
11-
<!-- Explain what you're trying to accomplish, how you encountered the problem you're trying to solve, and any difficulties that have prevented you from solving it yourself. -->
15+
<!--
16+
Explain what you're trying to accomplish, how you encountered the problem you're trying to solve, and any difficulties that have prevented you from solving it yourself.
17+
-->
1218

1319
#### DETAILS
14-
<!-- What details can you include that will help us identify and solve your problem? -->
20+
<!--
21+
What details can you include that will help us identify and solve your problem?
22+
If your program produces different results from what you expected, state what you expected, why you expected it, and the actual results.
23+
-->
24+
1525

1626
#### STEPS TO REPRODUCE
17-
<!-- Not all questions benefit from including code, but if your problem is with the code you've written, you should consider including your models, DbContext, controllers, resource services, repositories, resource definitions, etc. Include the request URL with body (if applicable) and the full exception stack trace (set `options.IncludeExceptionStackTraceInErrors` to `true`) in case of errors. It may also be helpful to include the produced SQL, which can be made visible in logs by adding this to appsettings.json:
27+
<!--
28+
Not all questions benefit from including code, but if your problem is with the code you've written, you should consider including your models, DbContext, controllers, resource services, repositories, resource definitions, etc. Include the request URL with the response body (if applicable) and the full exception stack trace (set `options.IncludeExceptionStackTraceInErrors` to `true`) in case of errors. It may also be helpful to include the produced SQL, which can be made visible in logs by adding this to appsettings.json:
1829
1930
```json
2031
{

Build.ps1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function RunInspectCode {
2323
$issueType = $xml.report.IssueTypes.SelectSingleNode("IssueType[@Id='$($_.TypeId)']")
2424
$severity = $_.Severity ?? $issueType.Severity
2525

26-
Write-Output "[$severity] $($_.File):$($_.Line) $($_.Message)"
26+
Write-Output "[$severity] $($_.File):$($_.Line) $($_.TypeId): $($_.Message)"
2727
})
2828
})
2929
}
@@ -113,11 +113,8 @@ CheckLastExitCode
113113
dotnet build -c Release
114114
CheckLastExitCode
115115

116-
# https://youtrack.jetbrains.com/issue/RSRP-488628/Breaking-InspectCode-fails-with-Roslyn-Worker-process-exited-unexpectedly-after-update
117-
if ($IsWindows) {
118-
RunInspectCode
119-
RunCleanupCode
120-
}
116+
RunInspectCode
117+
RunCleanupCode
121118

122119
dotnet test -c Release --no-build --collect:"XPlat Code Coverage"
123120
CheckLastExitCode

Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<AspNetVersion>6.0.*</AspNetVersion>
55
<EFCoreVersion>7.0.*</EFCoreVersion>
66
<EFCorePostgresVersion>7.0.*</EFCorePostgresVersion>
7-
<MicrosoftCodeAnalysisVersion>4.4.*</MicrosoftCodeAnalysisVersion>
7+
<MicrosoftCodeAnalysisVersion>4.5.*</MicrosoftCodeAnalysisVersion>
88
<HumanizerVersion>2.14.1</HumanizerVersion>
99
<SwashbuckleVersion>6.4.*</SwashbuckleVersion>
1010
<NSwagApiClientVersion>13.16.*</NSwagApiClientVersion>
1111
<MicrosoftApiClientVersion>6.0.*</MicrosoftApiClientVersion>
1212
<NewtonsoftJsonVersion>13.0.*</NewtonsoftJsonVersion>
13-
<JsonApiDotNetCoreVersionPrefix>5.1.3</JsonApiDotNetCoreVersionPrefix>
13+
<JsonApiDotNetCoreVersionPrefix>5.2.1</JsonApiDotNetCoreVersionPrefix>
1414
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)CodingGuidelines.ruleset</CodeAnalysisRuleSet>
1515
<WarningLevel>9999</WarningLevel>
1616
<Nullable>enable</Nullable>
@@ -21,7 +21,7 @@
2121

2222
<ItemGroup>
2323
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" PrivateAssets="All" />
24-
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.8.2" PrivateAssets="All" />
24+
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.8.3" PrivateAssets="All" />
2525
<AdditionalFiles Include="$(MSBuildThisFileDirectory)CSharpGuidelinesAnalyzer.config" Visible="False" />
2626
</ItemGroup>
2727

@@ -39,6 +39,6 @@
3939
<PropertyGroup>
4040
<CoverletVersion>3.2.*</CoverletVersion>
4141
<MoqVersion>4.18.*</MoqVersion>
42-
<TestSdkVersion>17.4.*</TestSdkVersion>
42+
<TestSdkVersion>17.5.*</TestSdkVersion>
4343
</PropertyGroup>
4444
</Project>

JetBrainsInspectCodeTransform.xslt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<tr>
2626
<th>File</th>
2727
<th>Line Number</th>
28+
<th>Type</th>
2829
<th>Message</th>
2930
</tr>
3031
<xsl:for-each select="key('ISSUETYPES',@Id)">
@@ -35,6 +36,9 @@
3536
<td>
3637
<xsl:value-of select="@Line"/>
3738
</td>
39+
<td>
40+
<xsl:value-of select="@TypeId"/>
41+
</td>
3842
<td>
3943
<xsl:value-of select="@Message"/>
4044
</td>

0 commit comments

Comments
 (0)