dasantonym/wdt

View on GitHub

Showing 4 of 23 total issues

Function readFrame has 122 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            var readFrame = function () {
                cam.read(function(err, mat){
                    mat.convertGrayscale();
                    motion.process(mat, 0.000001, 2.0, -10.0, 0);
                    mat = mat.flip(1);
Severity: Major
Found in src/js/controllers/space.js - About 4 hrs to fix

    File space.js has 273 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* global console,angular,require */
    (function () {
        'use strict';
        angular.module(
            'wdt.controllers.space', [])
    Severity: Minor
    Found in src/js/controllers/space.js - About 2 hrs to fix

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

                  document.onkeydown = function (e) {
                      switch (e.keyCode) {
                          case 38: // up
                              $scope.threshold = Math.min(255, $scope.threshold + 3);
                              $scope.showOSD();
      Severity: Minor
      Found in src/js/controllers/space.js - About 1 hr to fix

        Function onkeydown has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    document.onkeydown = function (e) {
                        switch (e.keyCode) {
                            case 38: // up
                                $scope.weight = Math.min(1.0, $scope.weight + 0.005);
                                $scope.showOSD();
        Severity: Minor
        Found in src/js/controllers/appear-disappear.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language