| Schweregrad | Ort | Regel | Meldung |
|---|---|---|---|
| error | inbox-page.tsx:116 | silent-swallow-write | 写操作被静默吞掉:api.notifications.markRead(n.id).then(() => loadNotifications()) 失败时无任何反馈——用户会以为操作成功 |
| error | inbox-page.tsx:121 | @typescript-eslint/no-floating-promises | Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator. |
| error | i18n.tsx:129 | tsc(TS2339) | Property 'env' does not exist on type 'ImportMeta'. |
| error | oidc-direct.tsx:68 | @typescript-eslint/no-unsafe-assignment | Unsafe assignment of an `any` value. |
| error | oidc-direct.tsx:70 | @typescript-eslint/no-unsafe-member-access | Unsafe member access .error_description on an `any` value. |
| error | oidc-direct.tsx:70 | @typescript-eslint/no-unsafe-member-access | Unsafe member access .error on an `any` value. |
| error | post-page.tsx:101 | silent-swallow-write | 写操作被静默吞掉:api.attachments.del(id) 失败时无任何反馈——用户会以为操作成功 |
| error | thread-page.tsx:403 | silent-swallow-write | 写操作被静默吞掉:api.notifications.markRead(notifId) 失败时无任何反馈——用户会以为操作成功 |
| warning | tasks.py:106 | py-assert-runtime | assert used for runtime validation; assertions are stripped when Python runs with -O |
| warning | inbox-page.tsx:196 | unprotected-await | markAllRead() 内部 await 无 try/catch,此处调用也未受保护——失败会产生未处理的 rejection |
| warning | i18n.tsx:116 | @typescript-eslint/no-unnecessary-type-assertion | This assertion is unnecessary since the receiver accepts the original type of the expression. |
| warning | i18n.tsx:129 | silent-config-empty-fallback | 配置缺失时静默回退到空串:win.__I18N_ORIGIN__ ?? (import.meta.env?.VITE_I18N_API_ORIGIN as strin… ?? "" —— 部署漏配不会被发现 |
| warning | i18n.tsx:129 | silent-config-import-meta | 可选链读配置 import.meta.env?.VITE_I18N_API_ORIGIN:类型未声明或缺失时会静默降级,部署配置错误不会被发现 |