aullman/OpenTok-Angular

View on GitHub

Showing 3 of 7 total issues

Function link has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

link: function(scope, element, attrs) {
var props = scope.props() || {};
props.width = props.width ? props.width : ng.element(element).width();
props.height = props.height ? props.height : ng.element(element).height();
var oldChildren = ng.element(element).children();
Severity: Major
Found in opentok-angular.js - About 2 hrs to fix

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

    init: function(apiKey, sessionId, token, cb) {
    this.session = OT.initSession(apiKey, sessionId);
     
    OTSession.session.on({
    sessionConnected: function() {
    Severity: Minor
    Found in opentok-angular.js - About 1 hr to fix

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

      module.exports = function(config) {
      config.set({
       
      // base path that will be used to resolve all patterns (eg. files, exclude)
      basePath: '',
      Severity: Minor
      Found in karma.conf.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language