From 6a8a4faddde659a718ddf9601365d1184367ac78 Mon Sep 17 00:00:00 2001 From: Janine Chan <64388808+janine-c@users.noreply.github.com> Date: Wed, 7 Jan 2026 11:19:25 -0700 Subject: [PATCH 1/3] Add list check --- .vale.ini | 3 ++- styles/Datadog/lists.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 styles/Datadog/lists.yml diff --git a/.vale.ini b/.vale.ini index 38b57a4..c15eeb6 100644 --- a/.vale.ini +++ b/.vale.ini @@ -32,4 +32,5 @@ Datadog.tense = YES Datadog.words_case_sensitive = YES Datadog.words_case_insensitive = YES Datadog.quotes = YES -Datadog.aws = YES \ No newline at end of file +Datadog.aws = YES +Datadog.lists = YES \ No newline at end of file diff --git a/styles/Datadog/lists.yml b/styles/Datadog/lists.yml new file mode 100644 index 0000000..1e6cb68 --- /dev/null +++ b/styles/Datadog/lists.yml @@ -0,0 +1,14 @@ +# This file is used to lint lists. +extends: existence +message: "For ordered lists at all levels, use numbers (1.) instead of letters (a.)." +scope: raw +nonword: true +level: warning +action: + name: edit + params: + - regex + - '(\n+\s*)[a-z]\. ' # pattern + - '$11. ' # replace +tokens: + - '(?<=\n\s*)([a-z]\.) ' \ No newline at end of file From 66d894bdac05726cb1500d77a3ba4115d6486bcd Mon Sep 17 00:00:00 2001 From: Janine Chan <64388808+janine-c@users.noreply.github.com> Date: Wed, 7 Jan 2026 12:25:16 -0700 Subject: [PATCH 2/3] Fix indentation --- styles/Datadog/lists.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/styles/Datadog/lists.yml b/styles/Datadog/lists.yml index 1e6cb68..26debd3 100644 --- a/styles/Datadog/lists.yml +++ b/styles/Datadog/lists.yml @@ -7,8 +7,8 @@ level: warning action: name: edit params: - - regex - - '(\n+\s*)[a-z]\. ' # pattern - - '$11. ' # replace + - regex + - '(\n+\s*)[a-z]\. ' # pattern + - '$11. ' # replace tokens: - '(?<=\n\s*)([a-z]\.) ' \ No newline at end of file From f6a630b0ce17b04d29c59adc55405fe5b7f9dcc9 Mon Sep 17 00:00:00 2001 From: Janine Chan <64388808+janine-c@users.noreply.github.com> Date: Fri, 17 Apr 2026 10:43:57 -0600 Subject: [PATCH 3/3] Add app_links Vale rule to flag private internal Datadog URLs Catches internal subdomain patterns (dd*.datadoghq.com, demo.datadoghq.com) and datad0g.com links, suggesting app.datadoghq.com as the replacement. Co-Authored-By: Claude Sonnet 4.6 --- styles/Datadog/app_links.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 styles/Datadog/app_links.yml diff --git a/styles/Datadog/app_links.yml b/styles/Datadog/app_links.yml new file mode 100644 index 0000000..17a7c45 --- /dev/null +++ b/styles/Datadog/app_links.yml @@ -0,0 +1,14 @@ +# This file is used to lint links to internal Datadog environments that are not accessible to customers. +extends: substitution +message: "This looks like a private app link. Use '%s' instead of '%s'." +link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md#links" +ignorecase: true +level: error +scope: raw +action: + name: replace +swap: + # Matches known internal subdomain patterns on the product domain + 'https?://(?:dd[a-zA-Z0-9\-]*|demo)\.datadoghq\.com': https://app.datadoghq.com + # Matches the internal zero-substitution domain variant + 'https?://(?:[a-zA-Z0-9][a-zA-Z0-9\-]*\.)?datad0g\.com': https://app.datadoghq.com