fix(security): remediate 44 SonarQube vulnerabilities#24
Open
devin-ai-integration[bot] wants to merge 4 commits into
Open
fix(security): remediate 44 SonarQube vulnerabilities#24devin-ai-integration[bot] wants to merge 4 commits into
devin-ai-integration[bot] wants to merge 4 commits into
Conversation
- S5254: Add lang attribute to <html> element - S6850: Add aria-label to heading with image-only content - ImgWithoutAltCheck: Add alt attributes to all images - S2933: Mark never-reassigned members as readonly - S7764: Replace window with globalThis - S7765: Use .includes() instead of .indexOf() - S7773: Use Number.parseInt instead of parseInt - S7651: Rename output bindings to avoid DOM event name conflicts - S7735: Simplify negated conditions - MouseEventWithoutKeyboardEquivalentCheck: Add keyboard handler to clickable icon Co-Authored-By: sachet.agarwal <sachet.agarwal@windsurf.com>
- S2699: Add missing assertions to test cases - S5914: Replace always-true assertions with meaningful checks - S1874: Remove deprecated BrowserDynamicTestingModule/platformBrowserDynamicTesting from test-setup Co-Authored-By: sachet.agarwal <sachet.agarwal@windsurf.com>
Co-Authored-By: sachet.agarwal <sachet.agarwal@windsurf.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- S7653: Revert output aliasing, keep original property name 'toggle' - S6819: Replace <i role='button'> with native <button> for accessibility - S7735/S7651 fixes preserved (negated conditions, naming) Co-Authored-By: sachet.agarwal <sachet.agarwal@windsurf.com>
Author
End-to-End Test ResultsRan the app locally ( Core Functionality Tests (UI-visible changes)
Accessibility Attribute Tests
Environment & Notes
|
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.
Summary
Remediates all 44 SonarQube issues identified during a SonarCloud scan. Post-scan confirms 0 remaining issues — 100% resolution rate.
Fix Summary by Severity
Fixes Applied
Source files (20 files):
lang="en"attribute to<html>element (index.html)aria-labelto heading with image-only content (home.component.html)altattributes to images (header.component.html,article.component.html,profile.component.html)readonly(user.service.ts,header.component.ts,if-authenticated.directive.ts,article-list.component.ts,favorite-button.component.ts,follow-button.component.ts,profile-articles.component.ts,profile-favorites.component.ts)windowwithglobalThis(app.config.ts,jwt.service.ts).includes()instead of.indexOf() < 0(editor.component.ts)Number.parseIntinstead ofparseInt(home.component.ts)favorite-button.component.ts,follow-button.component.ts)favorite-button.component.ts,follow-button.component.ts)<i role="button">with native<button>for accessibility (editor.component.html)Test files (4 files):
articles.service.spec.ts,comments.service.spec.ts,profile.service.spec.ts)expect(true).toBe(true)assertions with meaningful checksBrowserDynamicTestingModule/platformBrowserDynamicTestingfromtest-setup.tsReview & Testing Checklist for Human
globalThisreplacement works in all target browsers (globalThis is supported in all modern browsers and Node.js 12+)<i>to<button>with reset styles)Notes
mainbranch withzone.jsresolution error — pre-existing issue, not introduced by this PRbun run build) passes successfullybun run format:check) passesLink to Devin session: https://app.devin.ai/sessions/663c27b464e14c03aa61c0f56f69dfdb
Requested by: @SachetCognition
Devin Review