CubScoutCake/CubEventBooking

View on GitHub

Showing 244 of 2,792 total issues

File jquery.js has 6685 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in webroot/js/jquery.js - About 2 wks to fix

File bootstrap.bundle.js has 4025 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
  * Bootstrap v4.1.3 (https://getbootstrap.com/)
  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
Severity: Major
Found in webroot/js/bootstrap.bundle.js - About 1 wk to fix

File bootstrap.js has 2830 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
  * Bootstrap v4.1.3 (https://getbootstrap.com/)
  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
Severity: Major
Found in webroot/js/bootstrap.js - About 1 wk to fix

Function Sizzle has 1452 lines of code (exceeds 150 allowed). Consider refactoring.
Open

(function( window ) {

var i,
    support,
    Expr,
Severity: Major
Found in webroot/js/jquery.js - About 6 days to fix

Function sync has a Cognitive Complexity of 118 (exceeds 20 allowed). Consider refactoring.
Open

    public function sync()
    {
        $settings = TableRegistry::get('Settings');
        $users = TableRegistry::get('Users');
        $atts = TableRegistry::get('Attendees');
Severity: Minor
Found in src/Controller/OsmController.php - About 2 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File AttendeesTableTest.php has 853 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace App\Test\TestCase\Model\Table;

use App\Model\Entity\Attendees;
use App\Model\Table\AttendeesTable;
Severity: Major
Found in tests/TestCase/Model/Table/AttendeesTableTest.php - About 2 days to fix

Function Tooltip has 515 lines of code (exceeds 150 allowed). Consider refactoring.
Open

  var Tooltip = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in webroot/js/bootstrap.bundle.js - About 1 day to fix

Function Tooltip has 515 lines of code (exceeds 150 allowed). Consider refactoring.
Open

  var Tooltip = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in webroot/js/bootstrap.js - About 1 day to fix

Function Tooltip has 432 lines of code (exceeds 150 allowed). Consider refactoring.
Open

    function () {
      function Tooltip(element, config) {
        /**
         * Check for Popper dependency
         * Popper - https://popper.js.org
Severity: Major
Found in webroot/js/bootstrap.bundle.js - About 1 day to fix

Function Tooltip has 432 lines of code (exceeds 150 allowed). Consider refactoring.
Open

    function () {
      function Tooltip(element, config) {
        /**
         * Check for Popper dependency
         * Popper - https://popper.js.org
Severity: Major
Found in webroot/js/bootstrap.js - About 1 day to fix

Function Modal has 414 lines of code (exceeds 150 allowed). Consider refactoring.
Open

  var Modal = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in webroot/js/bootstrap.bundle.js - About 1 day to fix

Function Modal has 414 lines of code (exceeds 150 allowed). Consider refactoring.
Open

  var Modal = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in webroot/js/bootstrap.js - About 1 day to fix

Function Carousel has 368 lines of code (exceeds 150 allowed). Consider refactoring.
Open

  var Carousel = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in webroot/js/bootstrap.js - About 1 day to fix

Function Carousel has 368 lines of code (exceeds 150 allowed). Consider refactoring.
Open

  var Carousel = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in webroot/js/bootstrap.bundle.js - About 1 day to fix

File NotificationsController.php has 566 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace App\Controller\Admin;

use Cake\I18n\Time;
use Cake\Mailer\Email;
Severity: Major
Found in src/Controller/Admin/NotificationsController.php - About 1 day to fix

File ApplicationsController.php has 530 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace App\Controller;

use App\Form\CancellationForm;
use App\Form\SyncBookForm;
Severity: Major
Found in src/Controller/ApplicationsController.php - About 1 day to fix

Method getExpected has 340 lines of code (exceeds 150 allowed). Consider refactoring.
Open

    public function getExpected()
    {
        $startNow = FrozenTime::now();
        $nowDate = new FrozenDate('2016-12-26');

Severity: Major
Found in tests/TestCase/Model/Table/AttendeesTableTest.php - About 1 day to fix

Function Modal has 335 lines of code (exceeds 150 allowed). Consider refactoring.
Open

    function () {
      function Modal(element, config) {
        this._config = this._getConfig(config);
        this._element = element;
        this._dialog = element.querySelector(Selector.DIALOG);
Severity: Major
Found in webroot/js/bootstrap.js - About 1 day to fix

Function Modal has 335 lines of code (exceeds 150 allowed). Consider refactoring.
Open

    function () {
      function Modal(element, config) {
        this._config = this._getConfig(config);
        this._element = element;
        this._dialog = element.querySelector(Selector.DIALOG);
Severity: Major
Found in webroot/js/bootstrap.bundle.js - About 1 day to fix

Function Dropdown has 335 lines of code (exceeds 150 allowed). Consider refactoring.
Open

  var Dropdown = function ($$$1) {
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
Severity: Major
Found in webroot/js/bootstrap.bundle.js - About 1 day to fix
Severity
Category
Status
Source
Language