Skip to content

Conversation

@timyates
Copy link
Contributor

This PR clears up 80 warnings issued by Sonar around imports in the React code in 2 commits (might be easier to review each commit separately)

  1. Imports from the same module should be merged

    Having the same module imported multiple times can affect code readability and maintainability.

  2. Unnecessary imports should be removed

    These imports do not contribute to the functionality of the application and only add extra weight to the JavaScript bundle, leading to potential performance and maintainability issues.

timyates added 2 commits June 19, 2024 12:13
Having the same module imported multiple times can affect code readability and maintainability.
These imports do not contribute to the functionality of the application and only add extra weight to the JavaScript bundle, leading to potential performance and maintainability issues.
@timyates timyates requested review from mvolkmann and vhscom June 19, 2024 11:20
@timyates timyates self-assigned this Jun 19, 2024
@@ -1,20 +1,21 @@
import React, { useContext, useEffect, useState, useRef } from 'react';
import { styled } from '@mui/material/styles';
import './FeedbackRecipientSelector.css';
Copy link
Collaborator

@mvolkmann mvolkmann Jun 19, 2024

Choose a reason for hiding this comment

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

At first I thought this import was removed, but I see now that it was just moved down. That's fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I tried to arrange them all to kind of match each other... In the main the css import comes just prior to the const values

Copy link
Collaborator

Choose a reason for hiding this comment

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

That matches my preference.

@timyates timyates merged commit 5be1b86 into develop Jun 19, 2024
@timyates timyates deleted the bugfix-sonar-javascript-imports branch June 19, 2024 14:49
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.

4 participants