diff --git a/src/review/enrichment-wire.ts b/src/review/enrichment-wire.ts index 938235dbbc..d3442d02d5 100644 --- a/src/review/enrichment-wire.ts +++ b/src/review/enrichment-wire.ts @@ -92,6 +92,7 @@ export const REES_ANALYZER_NAMES = [ "iacMisconfig", "nativeBuild", "history", + "docCommentDrift", ] as const; const REES_ANALYZER_NAME_SET = new Set(REES_ANALYZER_NAMES); diff --git a/test/unit/enrichment-wire.test.ts b/test/unit/enrichment-wire.test.ts index 33c85db7c0..0c6e6546ad 100644 --- a/test/unit/enrichment-wire.test.ts +++ b/test/unit/enrichment-wire.test.ts @@ -491,12 +491,18 @@ describe("resolveReesAnalyzers", () => { warnSpy.mockRestore(); }); + it("accepts docCommentDrift as a configured analyzer subset", () => { + expect( + resolveReesAnalyzers(env({ REES_ANALYZERS: "docCommentDrift" })), + ).toEqual(["docCommentDrift"]); + }); + it("accepts every REES analyzer currently registered by the service", () => { expect( resolveReesAnalyzers( env({ REES_ANALYZERS: - "dependency,lockfileDrift,secret,license,installScript,heavyDependency,actionPin,eol,redos,provenance,codeowners,secretLog,assetWeight,typosquat,commitSignature,iacMisconfig,nativeBuild,history", + "dependency,lockfileDrift,secret,license,installScript,heavyDependency,actionPin,eol,redos,provenance,codeowners,secretLog,assetWeight,typosquat,commitSignature,iacMisconfig,nativeBuild,history,docCommentDrift", }), ), ).toEqual([ @@ -518,6 +524,7 @@ describe("resolveReesAnalyzers", () => { "iacMisconfig", "nativeBuild", "history", + "docCommentDrift", ]); });