Skip to content

Fikser Sonarqube issues #2267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Fikser Sonarqube issues #2267

wants to merge 9 commits into from

Conversation

terjeofnorway
Copy link
Contributor

Oppsummering av hva som er gjort

  • Endrer || til ?? (nullish coalescing)
  • Fjerner bruk av index i key og bruker andre elementer fra objekt istedet.

Testing

Testes I dev

@terjeofnorway terjeofnorway requested a review from a team as a code owner April 14, 2025 12:41
@terjeofnorway terjeofnorway requested a review from Copilot April 14, 2025 12:41
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 90 out of 91 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • Dockerfile: Language not supported
Comments suppressed due to low confidence (2)

packages/nextjs/src/components/_common/card/MicroCard/MicroCards.tsx:40

  • Ensure that the computed key value is always defined and unique. Consider adding a fallback (e.g. a unique identifier) if both card.link?.url and card.link?.text are undefined.
<MicroCard {...card} key={card.link?.url ?? card.link?.text} />

packages/nextjs/src/components/_common/accordion/Accordion.tsx:63

  • Verify that either item.anchorId or item.title is always provided to generate a unique key. If both could be undefined, consider including a fallback value to prevent duplicate or missing keys.
key={item.anchorId ?? item.title}

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 Visual changes detected

Please review the screenshot changes before merging.

@terjeofnorway terjeofnorway force-pushed the fikser-sonarqube-issues branch from 7b692f3 to 18e4f4c Compare April 14, 2025 15:24
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant