fossasia/loklak_webclient

View on GitHub
app/js/components/angular-fullscreen.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function createModule has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

   var createModule = function(angular) {
      var module = angular.module('FBAngular', []);

      module.factory('Fullscreen', ['$document', '$rootScope', function ($document,$rootScope) {
         var document = $document[0];
Severity: Major
Found in app/js/components/angular-fullscreen.js - About 3 hrs to fix

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

                link : function ($scope, $element, $attrs) {
                   // Watch for changes on scope if model is provided
                   if ($attrs.fullscreen) {
                      $scope.$watch($attrs.fullscreen, function(value) {
                         var isEnabled = Fullscreen.isEnabled();
    Severity: Minor
    Found in app/js/components/angular-fullscreen.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status