Commit 88f19ae
Code cleanup (#691)
* Fixed: XML comment is not placed on a valid language element
* Fixed: Convert to method group
* Fixed: Use null propagation
* Fixed: Use string interpolation expression
* Fixed: Use lambda expression
* Fixed: Convert to compound assignment
* Fixed: Convert to 'using' declaration
* Fixed: Use 'await using'
* Fixed: Convert to '?:' expression
* Fixed: Merge conditional expression
* Fixed: Use object initializer
* Fixed: Qualifier is redundant
* Fixed: Using directive is not required by the code and can be safely removed
* Fixed: Redundant explicit array type specification
* Fixed: Type argument specification is redundant
* Fixed: Comparison with true is redundant
* Fixed: Redundant string interpolation
* Fixed: Conditional access qualifier expression is known to be not null
* Fixed: Empty object or collection initializer list is redundant
* Fixed: Redundant explicit array creation in argument of 'params' parameter
* Fixed: Type cast is redundant
* Fixed: The parameter {name} has the same default value
* Fixed: Empty argument list is redundant
* Fixed: Expression is always null
* Fixed: Value assigned is not used in any execution path
* Fixed: Redundant 'IEnumerable.Cast<T>' call
* Fixed: '??' right operand is always null
* Fixed: Redundant 'Object.ToString()' call
* Fixed: Qualifier 'base.' is redundant
* Fixed: The field is always assigned before being used and can be converted to local variable
* Fixed: Merge cast with type check
* Fixed: Replace with single call to First(..)
* Fixed: Replace 'Enumerable.Count()' invocation with collection count property access
* Fixed: Use format specifier
* Fixed: Field is assigned but its value is never used
* Fixed: Field can be made readonly
* Fixed: Redundant method override
* Fixed: Method is never used
* Fixed: Base interface is redundant
* Fixed: Field is never used
* Fixed: Local variable is never used
* Fixed: Method return value is never used
* Fixed: Constructor is never used
* Fixed: shared instance is never used
* Fixed: Parameter is never used
* Fixed: Method is never used
* Fixed: Initializing field/property by default value is redundant
* Fixed: Redundant base constructor call
* Fixed: parameter hides outer local variable with the same name
* Fixed: Cannot resolve symbol 'dynamic'
* Fixed: Possible unintended reference comparison
* Fixed: Co-variant array conversion can cause run-time exception on write operation
* Fixed: Return value of pure method is not used
* Fixed: Auto-property can be made get-only
* Fixed: Inconsistent body style: use expression-bodied property
* Fixed: Empty statement is redundant
* Fixed: Local variable can be declared in inner scope
* Fixed: Join declaration and assignment
* Fixed: Convert constructor to protected in abstract class
* Fixed: Replace with single call to FirstOrDefault/Count
* Fixed: Use single deconstruction declaration
* Fixed: Removed unused using directives
* Fixed a few obvious naming violations
* Fixed: Virtual member that is never overridden
* Removed DefaultPageSize/RequestedPageSize from IPageService because where the calculated value comes from is an implementation detail and should not be exposed to external code that uses paging.
* Fixed: Initializing property by default value is redundant
* Reduced accessibility for some non-public types/members
* Fixed: missing checkbox in Solution Configuration Manager
* Made non-public (and a few public) types sealed
* Fixed: Inconsistent modifiers style
* Removed reference to xunit from benchmarks project, so that 'dotnet test' does not try to run tests from it
* Empty commit to retry cibuild
* Update IQueryableExtensions.cs
Co-authored-by: Maurits Moeys <maurei@users.noreply.github.com>1 parent ec5f8d5 commit 88f19ae
File tree
236 files changed
+1000
-1302
lines changed- benchmarks
- src
- Examples
- GettingStarted
- Controllers
- Models
- ResourceDefinitionExample
- JsonApiDotNetCoreExample
- Controllers
- Data
- Models
- Resources
- Startups
- NoEntityFrameworkExample
- Controllers
- Data
- Models
- Services
- ReportsExample
- Models
- Services
- JsonApiDotNetCore
- Builders
- Configuration
- Controllers
- Data
- Extensions
- Formatters
- Graph
- ResourceNameFormatters
- Hooks
- Discovery
- Execution
- Traversal
- Internal
- Exceptions
- Generics
- Query
- Middleware
- Models
- Annotation
- JsonApiDocuments
- QueryParameterServices
- Common
- Contracts
- RequestServices
- Serialization
- Client
- Common
- Server
- Builders
- Contracts
- Services
- Contract
- test
- DiscoveryTests
- IntegrationTests/Data
- JsonApiDotNetCoreExampleTests
- Acceptance
- Extensibility
- HttpMethodRestrictions
- ResourceDefinitions
- Spec
- DocumentTests
- Helpers/Extensions
- NoEntityFrameworkTests
- Acceptance/Extensibility
- UnitTests
- Builders
- Controllers
- Data
- Extensions
- Graph
- Internal
- Middleware
- Models
- QueryParameters
- ResourceHooks
- ResourceHookExecutor
- Create
- Delete
- Read
- Update
- Serialization
- Client
- Common
- Server
- Services
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
236 files changed
+1000
-1302
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
0 commit comments