Skip to content

Update ChilliCream.AnalyzerConfig.Libraries to 1.1.0 - #10860

Merged
glen-84 merged 1 commit into
mainfrom
gai/analyzer-config-1-1-0
Nov 11, 2026
Merged

glen-84 merged 1 commit into
mainfrom
gai/analyzer-config-1-1-0

Conversation

@glen-84

@glen-84 glen-84 commented Nov 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Updates ChilliCream.AnalyzerConfig.Libraries to 1.1.0 in every Directory.Packages.props. The release turns off IDE0001 and IDE0002 and adds three rules at warning, 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 (simplify Nullable<T> to T?).
  • Applies the CCA0001 and CCA0002 code fixes in 15 files. Most are redundant qualifiers in Mocha.Mediator.Benchmarks, plus cref qualifiers in ApolloFederation and Language.Visitors. CCA0003, RCS1013, and RCS1020 report nothing.
  • Restores four explicit type arguments that IDE0001 fixes removed in Simplified names #8398, Fixed various analyzer errors #9102, and Fixed various analyzer errors #9114: TryAddScoped<IDataLoaderScope>, TryAddSingleton<ObjectPool<StringBuilder>>, AddSingleton<ITypeConverter>, and Features.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 info applied the fixes.
  • dotnet build src/All.slnx passes with no warnings, and HotChocolate.Types and StrawberryShake.Transport.InMemory build cleanly with the restored type arguments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.props files.
  • 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

@github-actions

Copy link
Copy Markdown
Contributor

Patch coverage

100.0% of changed lines covered (5/5)

File Covered Changed Patch %
…/DependencyInjection/InternalServiceCollectionExtensions.cs 2 2 100.0% 🟢
…/RequestExecutorServiceCollectionExtensions.cs 1 1 100.0% 🟢
…/Core/src/Types/Execution/RequestExecutorManager.cs 1 1 100.0% 🟢
…/src/Transport.InMemory/DependencyInjection/InMemoryClient.cs 1 1 100.0% 🟢

Project coverage: 59.5% (322243/541482 lines)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Nitro CLI E2E snapshots: no flow recordings changed vs main.

@glen-84
glen-84 merged commit a68e1ca into main Nov 11, 2026
162 checks passed
@glen-84
glen-84 deleted the gai/analyzer-config-1-1-0 branch November 11, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants