47 new problems found by Qodana for JS
Qodana for JS
47 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unused local symbol |
🔶 Warning | 13 |
ESLint |
🔶 Warning | 9 |
Unused import |
🔶 Warning | 8 |
Signature mismatch |
◽️ Notice | 10 |
Referenced UMD global variable |
◽️ Notice | 4 |
Deprecated symbol used |
◽️ Notice | 3 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report
Contact Qodana team
Contact us at [email protected]
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
Details
This result was published with Qodana GitHub Action
Annotations
Check warning on line 3 in src/components/announcementNotification.tsx
github-actions / Qodana for JS
Unused import
Unused
import { getAnnouncements } from '@/utils/actions/announcement-actions'
Check warning on line 3 in src/app/(account)/account/profile/frontpage/uploadBanner.tsx
github-actions / Qodana for JS
Unused import
Unused import specifier UserAvatarsDocumentType
Check warning on line 2 in src/app/(main)/gallery/page.tsx
github-actions / Qodana for JS
Unused import
Unused import { headers } from 'next/headers'
Check warning on line 2 in src/components/announcementNotification.tsx
github-actions / Qodana for JS
Unused import
Unused import specifier AnnouncementDocumentsType
Check warning on line 3 in src/app/(main)/gallery/page.tsx
github-actions / Qodana for JS
Unused import
Unused
import { createSessionServerClient } from '@/app/appwrite-session'
Check warning on line 4 in src/app/(account)/account/profile/frontpage/uploadBanner.tsx
github-actions / Qodana for JS
Unused import
Unused import specifier ID
Check warning on line 4 in src/app/(account)/account/profile/frontpage/uploadAvatar.tsx
github-actions / Qodana for JS
Unused import
Unused import specifier ID
Check warning on line 2 in src/app/(account)/account/gallery/page.tsx
github-actions / Qodana for JS
Unused import
Unused import { headers } from 'next/headers'
Check warning on line 138 in src/components/account/profile/mfaAlert.tsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 130 in src/app/(account)/account/gallery/[galleryId]/page.client.tsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 198 in src/app/(account)/account/idcard/page.client.jsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 163 in src/app/(account)/account/idcard/page.client.jsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 149 in src/app/(account)/account/profile/frontpage/uploadAvatar.tsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 15 in src/app/(main)/gallery/[galleryId]/page.client.tsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 149 in src/app/(account)/account/profile/frontpage/uploadBanner.tsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 54 in src/app/(main)/announcements/[announcementId]/page.tsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check warning on line 160 in src/app/(account)/account/gallery/upload/page.client.tsx
github-actions / Qodana for JS
ESLint
ESLint: Using \`\<img\>\` could result in slower LCP and higher bandwidth. Consider using \`\<Image /\>\` from \`next/image\` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element (@next/next/no-img-element)
Check notice on line 15 in src/app/api/user/oauth/route.js
github-actions / Qodana for JS
Signature mismatch
Argument type string is not assignable to parameter type any
Check notice on line 129 in src/app/(account)/account/idcard/page.client.jsx
github-actions / Qodana for JS
Signature mismatch
Argument type { method: string, body: FormData } is not assignable to parameter type RequestInit \| undefined
...
Type FormData is not assignable to type BodyInit \| null \| undefined
Type FormData is not assignable to type
ReadableStream\<any\> \| Blob \| ArrayBufferView \| ArrayBuffer \| FormData \| URLSearchParams \| string
Type FormData is not assignable to type string
Check notice on line 16 in src/app/api/user/oauth/route.js
github-actions / Qodana for JS
Signature mismatch
Argument type string is not assignable to parameter type any
Check notice on line 23 in src/app/api/user/signin/route.js
github-actions / Qodana for JS
Signature mismatch
Argument type string is not assignable to parameter type any
Check notice on line 22 in src/app/api/user/signin/route.js
github-actions / Qodana for JS
Signature mismatch
Argument type string is not assignable to parameter type any
Check notice on line 14 in src/app/api/user/logoutUser/route.js
github-actions / Qodana for JS
Signature mismatch
Argument type string is not assignable to parameter type any
Check notice on line 24 in src/app/api/user/signin/route.js
github-actions / Qodana for JS
Signature mismatch
Argument type
{
path: string,
maxAge: Date,
sameSite: string,
domain: string,
httpOnly: boolean,
secure: boolean
}
is not assignable to parameter type any
Check notice on line 15 in src/app/api/user/logoutUser/route.js
github-actions / Qodana for JS
Signature mismatch
Argument type
{
path: string,
expires: Date,
domain: string,
httpOnly: boolean,
secure: boolean
}
is not assignable to parameter type any