Skip to content

Commit

Permalink
D2L0017: Drop diagnostic. Migrated to D2L.Lms.Analyzers (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
omsmith authored Apr 25, 2024
1 parent 5c0e2d7 commit b60f530
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 260 deletions.

This file was deleted.

11 changes: 1 addition & 10 deletions src/D2L.CodeStyle.Analyzers/Diagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,7 @@ public static class Diagnostics {

// Retired:
// D2L0014 (SingletonIsntImmutable): "Classes marked as a singleton should be immutable.",

public static readonly DiagnosticDescriptor SingletonLocatorMisuse = new DiagnosticDescriptor(
id: "D2L0017",
title: "Can only use OldAndBrokenSingletonLocator to inject interfaces with the [Singleton] attribute",
messageFormat: "Cannot use OldAndBrokenSingletonLocator to inject {0} because it lacks the [Singleton] attribute",
category: "Correctness",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "Can only use OldAndBrokenSingletonLocator to inject interfaces with the [Singleton] attribute."
);
// D2L0017 (SingletonLocatorMisuse): "Can only use OldAndBrokenSingletonLocator to inject interfaces with the [Singleton] attribute"

public static readonly DiagnosticDescriptor DangerousMethodsShouldBeAvoided = new DiagnosticDescriptor(
id: "D2L0018",
Expand Down
101 changes: 0 additions & 101 deletions tests/D2L.CodeStyle.Analyzers.Test/Specs/SingletonLocatorAnalyzer.cs

This file was deleted.

0 comments on commit b60f530

Please sign in to comment.