Files
test-sonarqube/app.js
joker c9bd0a2ce7
Some checks failed
SonarQube Analysis / sonarqube (push) Failing after 35s
Trigger SonarQube analysis
2026-01-03 20:22:22 +00:00

17 lines
406 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