fix: remove 5 unused imports flagged by SonarQube#104
Open
sonarqube-agent[bot] wants to merge 1 commit intomainfrom
Open
fix: remove 5 unused imports flagged by SonarQube#104sonarqube-agent[bot] wants to merge 1 commit intomainfrom
sonarqube-agent[bot] wants to merge 1 commit intomainfrom
Conversation
Fixed issues: - AZZjKfTT4RkVRlFrkaO- for typescript:S1128 rule - AZZjKfX74RkVRlFrkaQR for typescript:S1128 rule - AZZjKfX74RkVRlFrkaQS for typescript:S1128 rule - AZZjKfX74RkVRlFrkaQT for typescript:S1128 rule - AZZjKfX74RkVRlFrkaQU for typescript:S1128 rule Generated by SonarQube Agent (task: 1b00c848-2b12-4052-b082-38c4a1b4ddac)
Author
|
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Removes unused imports of 'DsService', 'environment', 'HttpClient', 'HttpErrorResponse', and 'throwError' from multiple components. This eliminates SonarQube code smells and reduces unnecessary bundle weight without affecting functionality.
View Project in SonarCloud
Fixed Issues
typescript:S1128 - Remove this unused import of 'DsService'. • MINOR • View issue
Location:
psc-admin-portal/src/app/ds/header/menu/accessibilite/accessibilite.component.ts:19Why is this an issue?
Unnecessary imports refer to importing modules, libraries, or dependencies that are not used or referenced anywhere in the code. 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.
What changed
Removes the unused import of 'DsService' from 'accessibilite.component.ts'. The static analysis flagged this import as unnecessary because 'DsService' is not referenced anywhere in the file, adding unnecessary weight to the bundle. Removing it resolves the unused import code smell.
typescript:S1128 - Remove this unused import of 'environment'. • MINOR • View issue
Location:
psc-admin-portal/src/app/app.component.ts:22Why is this an issue?
Unnecessary imports refer to importing modules, libraries, or dependencies that are not used or referenced anywhere in the code. 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.
What changed
This hunk removes the unused import of 'throwError' from 'rxjs' and the unused import of 'environment' from '../environments/environment'. Neither symbol was referenced anywhere in the code, so removing these two import lines eliminates both unnecessary import warnings.
typescript:S1128 - Remove this unused import of 'HttpClient'. • MINOR • View issue
Location:
psc-admin-portal/src/app/app.component.ts:17Why is this an issue?
Unnecessary imports refer to importing modules, libraries, or dependencies that are not used or referenced anywhere in the code. 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.
What changed
This hunk removes the unused imports of 'HttpClient' and 'HttpErrorResponse' from '@angular/common/http'. Neither symbol was referenced anywhere in the code, so removing this entire import line eliminates both unnecessary import warnings for these two symbols.
typescript:S1128 - Remove this unused import of 'HttpErrorResponse'. • MINOR • View issue
Location:
psc-admin-portal/src/app/app.component.ts:17Why is this an issue?
Unnecessary imports refer to importing modules, libraries, or dependencies that are not used or referenced anywhere in the code. 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.
What changed
This hunk removes the unused imports of 'HttpClient' and 'HttpErrorResponse' from '@angular/common/http'. Neither symbol was referenced anywhere in the code, so removing this entire import line eliminates both unnecessary import warnings for these two symbols.
typescript:S1128 - Remove this unused import of 'throwError'. • MINOR • View issue
Location:
psc-admin-portal/src/app/app.component.ts:21Why is this an issue?
Unnecessary imports refer to importing modules, libraries, or dependencies that are not used or referenced anywhere in the code. 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.
What changed
This hunk removes the unused import of 'throwError' from 'rxjs' and the unused import of 'environment' from '../environments/environment'. Neither symbol was referenced anywhere in the code, so removing these two import lines eliminates both unnecessary import warnings.
SonarQube Remediation Agent uses AI. Check for mistakes.