eqot/RemoteCamera

View on GitHub

Showing 4 of 6 total issues

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

module.exports = function (grunt) {

  // Load grunt tasks automatically
  require('load-grunt-tasks')(grunt);

Severity: Major
Found in Gruntfile.js - About 1 day to fix

    File Gruntfile.js has 284 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // Generated on 2013-12-21 using generator-angular 0.6.0
    'use strict';
    
    // # Globbing
    // for performance reasons we're only matching one level down:
    Severity: Minor
    Found in Gruntfile.js - About 2 hrs to fix

      Function startViewfinder has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        SonyCamera.prototype.startViewfinder = function (req, res) {
          this.call('startLiveview', null, function (err, output) {
            var liveviewUrl = url.parse(output.result[0]);
            // console.log(liveviewUrl);
      
      
      Severity: Major
      Found in server/routes/sony-camera.js - About 2 hrs to fix

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

              var liveviewReq = http.request(liveviewUrl, function (liveviewRes) {
                // console.log(data);
        
                var contentType = liveviewRes.headers['content-type'];
                var boundaryBuffer = new Buffer('\n--' + boundary + '\nContent-Type: ' + contentType + '\n\n');
        Severity: Minor
        Found in server/routes/sony-camera.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language