镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions docs/rules/SER352.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/rules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Unlike everything under [Usage](#usage), these describe code that does not do wh

- [SER350](SER350) - language version too low for generated code
- [SER351](SER351) - a `[Resp]` declaration the fragment generator cannot implement
- [SER352](SER352) - generated database members that are not implemented and will throw

## When these rules stay quiet

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ SER308 | Usage | Warning | QueuedResultAnalyzer: calling the library's own
SER309 | Usage | Warning | RespInterpolationAnalyzer: literal text in a RESP interpolated command is parsed and encoded on every call, where a fragment or resolved command is prepared once
SER310 | Usage | Info | CancellationAnalyzer: a redis call that cannot honour the CancellationToken parameter its enclosing method accepts
SER351 | Build | Warning | RespFragmentGenerator: a [Resp] declaration that cannot be implemented, which would otherwise be skipped silently
SER352 | Build | Warning | AutoDatabaseGenerator: an [AutoDatabase(WarnIfIncomplete = true)] type still has generated members that only throw; Release builds only
722 changes: 0 additions & 722 deletions eng/StackExchange.Redis.Build/AutoDatabaseGenerator.cs

This file was deleted.

27 changes: 0 additions & 27 deletions eng/StackExchange.Redis.Build/Diagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,32 +383,5 @@ internal static class Diagnostics
description: "The RespFragment generator implements [Resp] partial properties of type RespFragment or RespCommand; a declaration it cannot match is skipped, which would otherwise appear only as a missing implementation part.",
helpLinkUri: HelpLink("SER351"));

/// <summary>
/// An <c>[AutoDatabase(WarnIfIncomplete = true)]</c> type still has members that only throw.
/// </summary>
/// <remarks>
/// <para>
/// A transition tripwire, not a code-quality rule. A type being migrated to a new implementation one
/// command at a time has the rest generated as throwing stubs; that is fine while the work is in
/// progress and <b>not</b> fine in something that ships, and the difference is invisible at a glance
/// because the whole point of the generated half is that nobody writes or reads it.
/// </para>
/// <para>
/// Reported only for <c>Release</c> builds (detected by the absence of the <c>DEBUG</c> preprocessor
/// symbol) so the inner development loop stays quiet, and only where the attribute opts in - the other
/// <c>[AutoDatabase]</c> users generate members that genuinely work by forwarding, and counting those
/// as "not implemented" would be both wrong and deafening.
/// </para>
/// </remarks>
public static readonly DiagnosticDescriptor AutoDatabaseIncomplete = new(
id: "SER352",
title: "Generated database members are not implemented",
messageFormat: "{0} member(s) of '{1}' are not implemented and will throw at run time",
category: BuildCategory,
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: "A type generated by [AutoDatabase(WarnIfIncomplete = true)] still has members that only throw; it is mid-transition and should not ship in that state.",
helpLinkUri: HelpLink("SER352"));

private static string HelpLink(string id) => string.Format(HelpLinkFormat, id);
}
294 changes: 0 additions & 294 deletions src/StackExchange.Redis/AutoDatabase.cs

This file was deleted.

4 changes: 2 additions & 2 deletions src/StackExchange.Redis/Availability/RespRetryExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ internal RespRetryExecutor(RespExecutorBase inner, RetryPolicy policy, Func<Canc
/// <summary>The policy in force; read by the tests, which assert how a policy was resolved.</summary>
internal RetryPolicy Policy => _controller.Policy;

/// <summary>The controller, shared with <see cref="RetryTransaction"/> so a transaction created from a
/// retrying database applies exactly the policy the database does.</summary>
/// <summary>The controller, shared with <see cref="RespRetryTransactionExecutor"/> so a transaction
/// created from a retrying database applies exactly the policy the database does.</summary>
internal RetryController Controller => _controller;

/// <summary>The executor underneath, so a second <c>WithRetry</c> can refuse rather than nest.</summary>
Expand Down
Loading
Loading