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/2] 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/2] 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