Title: Jackpot Junction test result using SonarQube which inspects various aspects of my code, ranging from minor styling details to critical design errors. This tool (SonarQube) provides valuable insights into code quality, including potential bugs, security hotspots, vulnerabilities, code duplication, and more. It’s a valuable tool for maintaining high-quality software projects.
The Issues
The following were the issues identified;
Bugs which were 2 coming from Blackjack.js with an error that read ("Remove this "===" check; it will always be false. Did you mean to use "=="?") and ("dealerPoints' is not modified in this loop"). These two bugs were labeled Blocker.
Security Hotspots: There were seven (7) security hotspot issues resulting from Blackjack. js, SlotsGame.jsxslots.js, SlotslikeGame.jsx, blackjack1.jsx and roulette.jsx. The security hotspot errors were a result of the pseudorandom number generator used and they were all medium, meaning it's not a serious issue but still needs to be corrected.
Step to Recreate the Bugs
Go to Visual studio code IDE and open it
Click on file
Click on open folder and select the Jackpot-Junction-main form directly on your computer
where you unzip the zip file you downloaded from github.
Go to Website Test/Blackjack.js and remove = from === to make it just ==
Also modify the dealerPoints in the loop
For The Security Hotspots
Click on Security Hotspots
Then click on the drop-down arrow with the heading Status: To review
Select safe as the code is not at risk and doesn't need to be modified.
Name: IKECHUKWU O. OSINOMUMU
Title: Jackpot Junction test result using SonarQube which inspects various aspects of my code, ranging from minor styling details to critical design errors. This tool (SonarQube) provides valuable insights into code quality, including potential bugs, security hotspots, vulnerabilities, code duplication, and more. It’s a valuable tool for maintaining high-quality software projects.
The Issues The following were the issues identified;
Bugs which were 2 coming from Blackjack.js with an error that read ("Remove this "===" check; it will always be false. Did you mean to use "=="?") and ("dealerPoints' is not modified in this loop"). These two bugs were labeled Blocker.
Security Hotspots: There were seven (7) security hotspot issues resulting from Blackjack. js, SlotsGame.jsxslots.js, SlotslikeGame.jsx, blackjack1.jsx and roulette.jsx. The security hotspot errors were a result of the pseudorandom number generator used and they were all medium, meaning it's not a serious issue but still needs to be corrected.
Step to Recreate the Bugs
For The Security Hotspots