Repository navigation
Update ChilliCream.AnalyzerConfig.Libraries to 1.1.0 - #10860
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified, and the changes preserve explicit registrations while applying only analyzer-driven simplifications and package updates.
No open issues 🎉
What changed in this PR
Updates ChilliCream.AnalyzerConfig.Libraries to 1.1.0 across the repository and applies the resulting analyzer fixes. The changes simplify redundant type qualifications and generic method arguments while preserving explicit service and feature registration types.
Changes:
- Updates the analyzer package version in all five
Directory.Packages.propsfiles. - Simplifies qualified type names, XML documentation references, and redundant generic arguments across Mocha, Hot Chocolate, and Strawberry Shake code.
- Restores explicit generic service and feature types where inference would be ambiguous.
| File | Description |
|---|---|
| src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClient.cs | Preserves the explicit IFileLookup feature type when setting request features. |
| src/Mocha/src/Examples/Reliability/OutboxInbox/OutboxInbox.cs | Simplifies the ConnectionFactory type reference using the existing namespace import. |
| src/Mocha/examples/PostgresTransport/Directory.Packages.props | Updates the analyzer configuration package version to 1.1.0. |
| src/Mocha/examples/Demo/Directory.Packages.props | Updates the analyzer configuration package version to 1.1.0. |
| src/Mocha/examples/AzureServiceBusTransport/Directory.Packages.props | Updates the analyzer configuration package version to 1.1.0. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/PipelineBenchmarks.cs | Simplifies Mocha and mediator benchmark type references and redundant generic arguments. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/NotificationBenchmarks.cs | Simplifies mediator service resolution and notification publishing calls. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/Messages.cs | Removes redundant namespace qualifications from message and middleware types. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/FullPipelineMessages.cs | Removes redundant namespace qualifications from full-pipeline benchmark types. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/FullPipelineBenchmarks.cs | Simplifies mediator resolution and redundant generic arguments. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/ConcurrentPipelineBenchmarks.cs | Simplifies mediator resolution and redundant generic arguments. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/CommandBenchmarks.cs | Simplifies mediator resolution and redundant generic arguments. |
| src/Mocha/benchmarks/Mocha.Mediator.Benchmarks/Messaging/BenchmarkSetup.cs | Removes redundant global and namespace qualifications from benchmark registrations. |
| src/Mocha/benchmarks/Directory.Packages.props | Updates the analyzer configuration package version to 1.1.0. |
| src/HotChocolate/Language/src/Language.Visitors/DefaultSyntaxNavigator.cs | Simplifies XML documentation type references. |
| src/HotChocolate/Core/src/Types/Execution/RequestExecutorManager.cs | Makes the registered ITypeConverter service type explicit. |
| src/HotChocolate/Core/src/Types/Execution/DependencyInjection/RequestExecutorServiceCollectionExtensions.cs | Makes the pooled StringBuilder service type explicit. |
| src/HotChocolate/Core/src/Types/Execution/DependencyInjection/InternalServiceCollectionExtensions.cs | Makes the scoped IDataLoaderScope service type explicit. |
| src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/PolicyDescriptorExtensions.cs | Simplifies XML documentation references to Policy. |
| src/Directory.Packages.props | Updates the repository-wide analyzer configuration package version to 1.1.0. |
Review effort: Lite
Contributor
Patch coverage100.0% of changed lines covered (5/5)
Project coverage: 59.5% (322243/541482 lines) |
Contributor
|
✅ Nitro CLI E2E snapshots: no flow recordings changed vs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ChilliCream.AnalyzerConfig.Librariesto 1.1.0 in everyDirectory.Packages.props. The release turns off IDE0001 and IDE0002 and adds three rules atwarning, which builds enforce: CCA0001 (simplify name), CCA0002 (remove redundant generic method type arguments), and CCA0003 (access members through their declaring type). It also enables RCS1013 (use predefined type) in place of IDE0049, and RCS1020 (simplifyNullable<T>toT?).Mocha.Mediator.Benchmarks, pluscrefqualifiers in ApolloFederation and Language.Visitors. CCA0003, RCS1013, and RCS1020 report nothing.TryAddScoped<IDataLoaderScope>,TryAddSingleton<ObjectPool<StringBuilder>>,AddSingleton<ITypeConverter>, andFeatures.Set<IFileLookup>. Each names the service or feature type the code registers, which would otherwise come from another member's declared type. None of the new rules reports them.Test plan
dotnet format analyzers src/All.slnx --diagnostics CCA0001 CCA0002 CCA0003 RCS1013 RCS1020 --severity infoapplied the fixes.dotnet build src/All.slnxpasses with no warnings, and HotChocolate.Types and StrawberryShake.Transport.InMemory build cleanly with the restored type arguments.