madbob/GASdottoNG

View on GitHub
code/resources/assets/js/widgets.js

Summary

Maintainability
C
1 day
Test Coverage

Function init has 147 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static init(container)
    {
        this.handlingContactSelection(container);
        this.initDatesWidgets(container);

Severity: Major
Found in code/resources/assets/js/widgets.js - About 5 hrs to fix

    File widgets.js has 252 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require('bootstrap-datepicker');
    require('select2');
    
    import utils from "./utils";
    
    
    Severity: Minor
    Found in code/resources/assets/js/widgets.js - About 2 hrs to fix

      Function initDatesWidgets has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          static initDatesWidgets(container)
          {
              $('input.date', container).datepicker({
                  format: 'DD dd MM yyyy',
                  autoclose: true,
      Severity: Minor
      Found in code/resources/assets/js/widgets.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status