Skip to content

Commit acf426d

Browse files
committed
Merge branch 'master' into reorganize-readme
2 parents f059fcd + c76ecdb commit acf426d

File tree

2,568 files changed

+293896
-9548
lines changed

Some content is hidden

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

2,568 files changed

+293896
-9548
lines changed

.config/dotnet-tools.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,39 @@
33
"isRoot": true,
44
"tools": {
55
"jetbrains.resharper.globaltools": {
6-
"version": "2024.1.4",
6+
"version": "2024.3.6",
77
"commands": [
88
"jb"
9-
]
9+
],
10+
"rollForward": false
1011
},
1112
"regitlint": {
12-
"version": "6.3.12",
13+
"version": "6.3.13",
1314
"commands": [
1415
"regitlint"
15-
]
16+
],
17+
"rollForward": false
1618
},
1719
"dotnet-reportgenerator-globaltool": {
18-
"version": "5.3.6",
20+
"version": "5.4.5",
1921
"commands": [
2022
"reportgenerator"
21-
]
23+
],
24+
"rollForward": false
2225
},
2326
"docfx": {
24-
"version": "2.76.0",
27+
"version": "2.78.2",
2528
"commands": [
2629
"docfx"
27-
]
30+
],
31+
"rollForward": false
32+
},
33+
"microsoft.openapi.kiota": {
34+
"version": "1.25.1",
35+
"commands": [
36+
"kiota"
37+
],
38+
"rollForward": false
2839
}
2940
}
3041
}

.editorconfig

Lines changed: 128 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,125 @@ root = true
44
[*]
55
indent_style = space
66
indent_size = 4
7+
tab-width = 4
78
charset = utf-8
89
trim_trailing_whitespace = true
910
insert_final_newline = true
1011

11-
[*.{config,csproj,css,js,json,props,ruleset,xslt,html}]
12+
[*.{config,csproj,css,js,json,props,targets,xml,ruleset,xsd,xslt,html,yml,yaml}]
1213
indent_size = 2
14+
tab-width = 2
15+
max_line_length = 160
16+
17+
[*.{cs,cshtml,ascx,aspx}]
1318

14-
[*.{cs}]
1519
#### C#/.NET Coding Conventions ####
1620

21+
# Default severity for IDE* analyzers with category 'Style'
22+
# Note: specific rules below use severity silent, because Resharper code cleanup auto-fixes them.
23+
dotnet_analyzer_diagnostic.category-Style.severity = warning
24+
1725
# 'using' directive preferences
1826
dotnet_sort_system_directives_first = true
19-
csharp_using_directive_placement = outside_namespace:suggestion
27+
csharp_using_directive_placement = outside_namespace:silent
28+
# IDE0005: Remove unnecessary import
29+
dotnet_diagnostic.IDE0005.severity = silent
2030

2131
# Namespace declarations
22-
csharp_style_namespace_declarations = file_scoped:suggestion
32+
csharp_style_namespace_declarations = file_scoped:silent
33+
# IDE0160: Use block-scoped namespace
34+
dotnet_diagnostic.IDE0160.severity = silent
35+
# IDE0161: Use file-scoped namespace
36+
dotnet_diagnostic.IDE0161.severity = silent
2337

2438
# this. preferences
25-
dotnet_style_qualification_for_field = false:suggestion
26-
dotnet_style_qualification_for_property = false:suggestion
27-
dotnet_style_qualification_for_method = false:suggestion
28-
dotnet_style_qualification_for_event = false:suggestion
39+
dotnet_style_qualification_for_field = false:silent
40+
dotnet_style_qualification_for_property = false:silent
41+
dotnet_style_qualification_for_method = false:silent
42+
dotnet_style_qualification_for_event = false:silent
43+
# IDE0003: Remove this or Me qualification
44+
dotnet_diagnostic.IDE0003.severity = silent
45+
# IDE0009: Add this or Me qualification
46+
dotnet_diagnostic.IDE0009.severity = silent
2947

3048
# Language keywords vs BCL types preferences
31-
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
32-
dotnet_style_predefined_type_for_member_access = true:suggestion
49+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
50+
dotnet_style_predefined_type_for_member_access = true:silent
51+
# IDE0049: Use language keywords instead of framework type names for type references
52+
dotnet_diagnostic.IDE0049.severity = silent
3353

3454
# Modifier preferences
35-
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
36-
csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion
37-
csharp_style_pattern_local_over_anonymous_function = false:silent
55+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
56+
# IDE0040: Add accessibility modifiers
57+
dotnet_diagnostic.IDE0040.severity = silent
58+
csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:silent
59+
# IDE0036: Order modifiers
60+
dotnet_diagnostic.IDE0036.severity = silent
3861

3962
# Expression-level preferences
4063
dotnet_style_operator_placement_when_wrapping = end_of_line
41-
dotnet_style_prefer_auto_properties = true:suggestion
42-
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
43-
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
44-
csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion
64+
dotnet_style_prefer_auto_properties = true:silent
65+
# IDE0032: Use auto property
66+
dotnet_diagnostic.IDE0032.severity = silent
67+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
68+
# IDE0045: Use conditional expression for assignment
69+
dotnet_diagnostic.IDE0045.severity = silent
70+
dotnet_style_prefer_conditional_expression_over_return = true:silent
71+
# IDE0046: Use conditional expression for return
72+
dotnet_diagnostic.IDE0046.severity = silent
73+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
74+
# IDE0058: Remove unused expression value
75+
dotnet_diagnostic.IDE0058.severity = silent
76+
77+
# Collection expression preferences (note: partially turned off in Directory.Build.props)
78+
dotnet_style_prefer_collection_expression = when_types_exactly_match
4579

4680
# Parameter preferences
47-
dotnet_code_quality_unused_parameters = non_public:suggestion
81+
dotnet_code_quality_unused_parameters = non_public
82+
83+
# Local functions vs lambdas
84+
csharp_style_prefer_local_over_anonymous_function = false:silent
85+
# IDE0039: Use local function instead of lambda
86+
dotnet_diagnostic.IDE0039.severity = silent
4887

4988
# Expression-bodied members
50-
csharp_style_expression_bodied_accessors = true:suggestion
51-
csharp_style_expression_bodied_constructors = false:suggestion
52-
csharp_style_expression_bodied_indexers = true:suggestion
53-
csharp_style_expression_bodied_lambdas = true:suggestion
54-
csharp_style_expression_bodied_local_functions = false:suggestion
55-
csharp_style_expression_bodied_methods = false:suggestion
56-
csharp_style_expression_bodied_operators = false:suggestion
57-
csharp_style_expression_bodied_properties = true:suggestion
89+
csharp_style_expression_bodied_accessors = true:silent
90+
# IDE0027: Use expression body for accessors
91+
dotnet_diagnostic.IDE0027.severity = silent
92+
csharp_style_expression_bodied_constructors = false:silent
93+
# IDE0021: Use expression body for constructors
94+
dotnet_diagnostic.IDE0021.severity = silent
95+
csharp_style_expression_bodied_indexers = true:silent
96+
# IDE0026: Use expression body for indexers
97+
dotnet_diagnostic.IDE0026.severity = silent
98+
csharp_style_expression_bodied_lambdas = true:silent
99+
# IDE0053: Use expression body for lambdas
100+
dotnet_diagnostic.IDE0053.severity = silent
101+
csharp_style_expression_bodied_local_functions = false:silent
102+
# IDE0061: Use expression body for local functions
103+
dotnet_diagnostic.IDE0061.severity = silent
104+
csharp_style_expression_bodied_methods = false:silent
105+
# IDE0022: Use expression body for methods
106+
dotnet_diagnostic.IDE0022.severity = silent
107+
csharp_style_expression_bodied_operators = false:silent
108+
# IDE0023: Use expression body for conversion operators
109+
dotnet_diagnostic.IDE0023.severity = silent
110+
# IDE0024: Use expression body for operators
111+
dotnet_diagnostic.IDE0024.severity = silent
112+
csharp_style_expression_bodied_properties = true:silent
113+
# IDE0025: Use expression body for properties
114+
dotnet_diagnostic.IDE0025.severity = silent
115+
116+
# Member preferences (these analyzers are unreliable)
117+
# IDE0051: Remove unused private member
118+
dotnet_diagnostic.IDE0051.severity = silent
119+
# IDE0052: Remove unread private member
120+
dotnet_diagnostic.IDE0052.severity = silent
58121

59122
# Code-block preferences
60-
csharp_prefer_braces = true:suggestion
123+
csharp_prefer_braces = true:silent
124+
# IDE0011: Add braces
125+
dotnet_diagnostic.IDE0011.severity = silent
61126

62127
# Indentation preferences
63128
csharp_indent_case_contents_when_block = false
@@ -66,19 +131,44 @@ csharp_indent_case_contents_when_block = false
66131
csharp_preserve_single_line_statements = false
67132

68133
# 'var' usage preferences
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
134+
csharp_style_var_for_built_in_types = false:silent
135+
csharp_style_var_when_type_is_apparent = true:silent
136+
csharp_style_var_elsewhere = false:silent
137+
# IDE0007: Use var instead of explicit type
138+
dotnet_diagnostic.IDE0007.severity = silent
139+
# IDE0008: Use explicit type instead of var
140+
dotnet_diagnostic.IDE0008.severity = silent
72141

73142
# Parentheses preferences
74-
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:suggestion
75-
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
76-
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:suggestion
77-
78-
# Expression value is never used
79-
dotnet_diagnostic.IDE0058.severity = none
80-
81-
#### Naming Style ####
143+
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:silent
144+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
145+
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:silent
146+
# IDE0047: Remove unnecessary parentheses
147+
dotnet_diagnostic.IDE0047.severity = silent
148+
# IDE0048: Add parentheses for clarity
149+
dotnet_diagnostic.IDE0048.severity = silent
150+
151+
# Switch preferences
152+
# IDE0010: Add missing cases to switch statement
153+
dotnet_diagnostic.IDE0010.severity = silent
154+
# IDE0072: Add missing cases to switch expression
155+
dotnet_diagnostic.IDE0072.severity = silent
156+
157+
# Null check preferences
158+
# IDE0029: Null check can be simplified
159+
dotnet_diagnostic.IDE0029.severity = silent
160+
# IDE0030: Null check can be simplified
161+
dotnet_diagnostic.IDE0030.severity = silent
162+
# IDE0270: Null check can be simplified
163+
dotnet_diagnostic.IDE0270.severity = silent
164+
165+
# JSON002: Probable JSON string detected
166+
dotnet_diagnostic.JSON002.severity = silent
167+
168+
# CA1062: Validate arguments of public methods
169+
dotnet_code_quality.CA1062.excluded_symbol_names = Accept|DefaultVisit|Visit*|Apply*
170+
171+
#### .NET Naming Style ####
82172

83173
dotnet_diagnostic.IDE1006.severity = warning
84174

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# When running OpenAPI tests, these committed files are downloaded and written to disk (so we'll know when something changes).
2+
# On Windows, these text files are auto-converted to crlf on git fetch, while the written downloaded files use lf line endings.
3+
# Therefore, running the tests on Windows creates local changes. Staging them auto-converts back to crlf, which undoes the changes.
4+
# To avoid this annoyance, the next line opts out of the auto-conversion and forces line endings to lf.
5+
**/GeneratedSwagger/**/*.json text eol=lf

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Bugs are tracked as [GitHub issues](https://github.com/json-api-dotnet/JsonApiDo
2222
Explain the problem and include additional details to help maintainers reproduce the problem:
2323

2424
- **Use a clear and descriptive title** for the issue to identify the problem.
25-
- **Describe the exact steps which reproduce the problem** in as many details as possible. When listing steps, don't just say what you did, but explain how you did it.
25+
- **Describe the exact steps which reproduce the problem** in as many details as possible. When listing steps, don't just say what you did, but explain how you did it.
2626
- **Provide specific examples to demonstrate the steps.** Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks).
2727
- **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior. Explain which behavior you expected to see instead and why.
2828
- **If you're reporting a crash**, include the full exception stack trace.

.github/dependabot.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
5-
schedule:
6-
interval: "weekly"
7-
pull-request-branch-name:
8-
separator: "-"
9-
- package-ecosystem: nuget
10-
directory: "/"
11-
schedule:
12-
interval: daily
13-
pull-request-branch-name:
14-
separator: "-"
15-
open-pull-requests-limit: 25
16-
ignore:
17-
# Block updates to all exposed dependencies of the NuGet packages we produce, as updating them would be a breaking change.
18-
- dependency-name: 'Ben.Demystifier'
19-
- dependency-name: 'Humanizer*'
20-
- dependency-name: 'Microsoft.CodeAnalysis*'
21-
- dependency-name: 'Microsoft.EntityFrameworkCore*'
22-
# Block major updates of packages that require a matching .NET version.
23-
- dependency-name: 'Microsoft.AspNetCore*'
24-
update-types: ["version-update:semver-major"]
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
pull-request-branch-name:
8+
separator: "-"
9+
- package-ecosystem: nuget
10+
directory: "/"
11+
schedule:
12+
interval: daily
13+
pull-request-branch-name:
14+
separator: "-"
15+
open-pull-requests-limit: 25
16+
ignore:
17+
# Block updates to all exposed dependencies of the NuGet packages we produce, as updating them would be a breaking change.
18+
- dependency-name: "Ben.Demystifier"
19+
- dependency-name: "Humanizer*"
20+
- dependency-name: "Microsoft.CodeAnalysis*"
21+
- dependency-name: "Microsoft.EntityFrameworkCore*"
22+
# Block major updates of packages that require a matching .NET version.
23+
- dependency-name: "Microsoft.AspNetCore*"
24+
update-types: ["version-update:semver-major"]

0 commit comments

Comments
 (0)