jonashartmann/webcam-directive

View on GitHub

Showing 4 of 4 total issues

Function exports has 107 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (grunt) {
  // load all grunt tasks
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

  var component = require('./bower.json'),
Severity: Major
Found in Gruntfile.js - About 4 hrs to fix

    Function postLink has 104 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          link: function postLink($scope, element) {
            var videoElem = null,
                videoStream = null,
                placeholder = null;
    
    
    Severity: Major
    Found in app/scripts/webcam.js - About 4 hrs to fix

      Function startWebcam has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              var startWebcam = function startWebcam() {
                videoElem = document.createElement('video');
                videoElem.setAttribute('class', 'webcam-live');
                videoElem.setAttribute('autoplay', '');
                element.append(videoElem);
      Severity: Minor
      Found in app/scripts/webcam.js - About 1 hr to fix

        Function exports has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = function(config) {
          config.set({
        
            customLaunchers: {
              custom_chrome: {
        Severity: Minor
        Found in karma.conf.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language