Kakise/Kaki-Static

View on GitHub

Showing 2 of 20 total issues

Function createConfigFile has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createConfigFile(array) {
    var proxyconf = "";
        array.forEach(prox => {
        proxyconf += `
        location ${prox.fields.origine} {
Severity: Major
Found in config/nginx.conf.js - About 2 hrs to fix

    Function execQuery has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function execQuery(req, res, next) {
        typeof req.params.id !== 'string' ? id = 1 : id = parseInt(req.params.id, 10);
    
        // Get the article list
        index.listArticles({
    Severity: Minor
    Found in routes/index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language