Files
test-sonarqube/app.js
joker b00b7cd935
All checks were successful
SonarQube Analysis / sonarqube (push) Successful in 19s
Test workflow
2026-01-03 20:31:15 +00:00

18 lines
425 B
JavaScript

// Test file for SonarQube analysis
function greet(name) {
if (name == null) { // Bug: should use === for strict comparison
return "Hello, World!";
}
return "Hello, " + name + "!";
}
// Code smell: unused variable
var unusedVar = 42;
// Security hotspot: hardcoded password
const password = "admin123";
console.log(greet("SonarQube"));
// Trigger build Sat Jan 3 20:22:22 UTC 2026
// Test 1767472275