Skip to content

fix: replace parseInt with Number.parseInt (SonarCloud maintainability)#137

Open
mnashawati wants to merge 2 commits into
developfrom
feature/FI0-11035-sonar-parseint-to-number-parseint
Open

fix: replace parseInt with Number.parseInt (SonarCloud maintainability)#137
mnashawati wants to merge 2 commits into
developfrom
feature/FI0-11035-sonar-parseint-to-number-parseint

Conversation

@mnashawati
Copy link
Copy Markdown
Contributor

@mnashawati mnashawati commented Mar 31, 2026

Description

Please include a summary of the change:

  • Replace all bare parseInt() calls with Number.parseInt() across 9 source files. This addresses ~20 SonarCloud code smell issues (es2015 convention).

  • Number.parseInt is functionally identical but preferred as it avoids reliance on the global scope.

Fixes - Jira Link #
https://eaflood.atlassian.net/browse/FI0-11035

Type of change

Please tick the relevant option for your PR request. Follow Semantic Version: vMAJOR.MINOR.PATCH

  • Bug fix - PATCH (non-breaking change which fixes an issue)
  • New feature - MINOR (non-breaking change which adds functionality)
  • Breaking change - MAJOR (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update, or other non-code files.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

mnashawati and others added 2 commits March 31, 2026 09:43
Replace all bare parseInt() calls with Number.parseInt() across 9 source files.
This addresses ~20 SonarCloud code smell issues (es2015 convention).

Number.parseInt is functionally identical but preferred as it avoids
reliance on the global scope.
@sonarqubecloud
Copy link
Copy Markdown

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