GuilhermeStracini/hello-world-cosmosdb-nodejs

View on GitHub

Showing 3 of 3 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

document.GuidProperty =
s4() +
s4() +
"-" +
s4() +
Severity: Major
Found in Src/worker.js and 1 other location - About 1 hr to fix
Src/worker.js on lines 36..48

Identical blocks of code found in 2 locations. Consider refactoring.
Open

document.InnerItems[0].Id =
s4() +
s4() +
"-" +
s4() +
Severity: Major
Found in Src/worker.js and 1 other location - About 1 hr to fix
Src/worker.js on lines 14..26

Function createDocument has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createDocument(index, document) {
const now = new Date();
const nowIso = now.toISOString();
 
document.id = "POC-" + index + "-" + s4();
Severity: Minor
Found in Src/worker.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language