From bd893b11a7a1debf292d1c80caf59559edb78d8d Mon Sep 17 00:00:00 2001 From: Cara Reaume Date: Wed, 29 Apr 2026 16:08:06 -0400 Subject: [PATCH] Adding the 'not' version of the rule. Also removed 'to' from the original version, after seeing some 'recommended that' in our docs --- styles/Datadog/recommendations.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/styles/Datadog/recommendations.yml b/styles/Datadog/recommendations.yml index 1e7b85a..7987b72 100644 --- a/styles/Datadog/recommendations.yml +++ b/styles/Datadog/recommendations.yml @@ -1,4 +1,4 @@ -# This file is used to lint passive "it is recommended" phrasing. +# This file is used to lint passive "it is (not) recommended" phrasing. extends: substitution message: "Use '%s' instead of '%s'." ignorecase: true @@ -6,4 +6,5 @@ level: warning action: name: replace swap: - "it(?:'s| is) recommended to": Datadog recommends + "it(?:'s| is) recommended": Datadog recommends + "it(?:'s| is) not recommended": Datadog does not recommend