From c1f0b289bd79a42c653aef1096404b6fd33b58fb Mon Sep 17 00:00:00 2001 From: Kaizen Conroy Date: Wed, 28 Dec 2022 12:36:50 -0500 Subject: [PATCH] exempt from readme linter rule, i think --- tools/@aws-cdk/pkglint/lib/rules.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/@aws-cdk/pkglint/lib/rules.ts b/tools/@aws-cdk/pkglint/lib/rules.ts index 5a921a7d27dbc..9f257954fcabc 100644 --- a/tools/@aws-cdk/pkglint/lib/rules.ts +++ b/tools/@aws-cdk/pkglint/lib/rules.ts @@ -276,7 +276,8 @@ export class ReadmeFile extends ValidationRule { if (!scopes) { return; } - if (pkg.packageName === '@aws-cdk/core') { + // elasticsearch is renamed to opensearch service, so its readme does not follow these rules + if (pkg.packageName === '@aws-cdk/core' || pkg.packageName === '@aws-cdk/aws-elasticsearch') { return; } const scope: string = typeof scopes === 'string' ? scopes : scopes[0];