ANSSI-FR/polichombr

View on GitHub
polichombr/static/js/families.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function generate_family_row has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function generate_family_row(family){
    row = $("<div></div>");
    row.attr("id", "family_" + family["id"]);
    row.attr("class", "row panel panel-default families");
    row.attr("style", "padding: 5px;");
Severity: Minor
Found in polichombr/static/js/families.js - About 1 hr to fix

    Function expand_callback has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function expand_callback(event_data){
        /*
         * Construct a subpanel with buttons linking to subfamilies
         */
        console.log(`Family ${event_data["data"]} expand requested`);
    Severity: Minor
    Found in polichombr/static/js/families.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status