Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjangarge committed Nov 20, 2020
1 parent 5b71cb3 commit 1d86191
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions source/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,3 @@ app.get('/perf', (req, res) => {


app.listen(port, () => console.log(`Sample node app listening at port ${port}`))

// Sample code for checking permissions
var fs = require('fs');
var dir = './logs';

if (!fs.existsSync(dir)){
fs.mkdirSync(dir);
}

// Sample code for SonarQube
let corsOptions = {
origin: '*' // Sensitive
};

function foo() {
console.log("Hello, World!");
}

a = foo();

var x = ["Saab", "Volvo", "BMW"];
var y = x.reverse(); // Noncompliant
var z = y.sort(); // Noncompliant

var m = 8;
var n = "8";

if (m === n) { // Noncompliant; always false
// ...
}

0 comments on commit 1d86191

Please sign in to comment.