patternfly/angular-patternfly

View on GitHub
src/utils/fixed-accordion.directive.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

    link: function ($scope, $element, $attrs) {
      var contentElementHeight = function (contentElement) {
        var contentHeight = contentElement.offsetHeight;
        contentHeight += parseInt(getComputedStyle(contentElement).marginTop);
        contentHeight += parseInt(getComputedStyle(contentElement).marginBottom);
Severity: Major
Found in src/utils/fixed-accordion.directive.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status