fix(lint): rotfelsa ärvd lint-skuld — graph-adapter + p0-tester (blockerade #128)
CI (SIAX Cloud) / integration (push) Skipped
CI (SIAX Cloud) / sonar (push) Skipped
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (push) Successful in 10s
masterplan-lock / check (pull_request) Successful in 9s
Security Scan (SIAX Cloud) / security (push) Successful in 24s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 24s
CI (SIAX Cloud) / security (pull_request) Successful in 48s
CI (SIAX Cloud) / security (push) Successful in 49s
CI (SIAX Cloud) / integration (pull_request) Successful in 49s
CI (SIAX Cloud) / quality (push) Failing after 56s
CI (SIAX Cloud) / quality (pull_request) Failing after 1m1s

Parallellsessions-merge lämnade 12 eslint-errors på main (no-explicit-any i
graph-mailbox-adapter + 2 p0-tester). Graph-JSON:n är genuint ostrukturerad
— medveten, avgränsad eslint-undantag med skäl (DoD §13); p0-testerna
typade med Record/cast. Lint 0 errors; tsc grön; 1141/1141.
This commit is contained in:
2026-09-29 12:31:34 +02:00
parent a49bc148fc
commit 1b6140a16a
3 changed files with 10 additions and 6 deletions
+5 -1
View File
@@ -113,6 +113,10 @@ export class GraphMailboxAdapter {
return this.cachedToken.token;
}
// Graph-API:t är genuint ostrukturerat JSON (value-array med fri form);
// full typning av hela Graph-ytan är egen insats — any här är medveten
// och avgränsad till denna adapter (eslint-undantag med skäl, DoD §13).
// eslint-disable-next-line @typescript-eslint/no-explicit-any
private async get(path: string): Promise<any> {
const token = await this.getToken();
const url = path.startsWith("http") ? path : `${GRAPH_BASE}${path}`;
@@ -150,7 +154,7 @@ export class GraphMailboxAdapter {
receivedAt: m.receivedDateTime || null,
senderName: m.from?.emailAddress?.name || null,
senderEmail: m.from?.emailAddress?.address || null,
toRecipients: (m.toRecipients || []).map((r: any) => r.emailAddress?.address).filter(Boolean),
toRecipients: (m.toRecipients || []).map((r: { emailAddress?: { address?: string } }) => r.emailAddress?.address).filter(Boolean),
subject: m.subject || null,
bodyPreview: m.bodyPreview || null,
bodyText: m.body?.content ? stripHtml(m.body.content) : m.bodyPreview || null,