owncloud/core

View on GitHub
core/js/jquery.avatar.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function avatar has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
        if (typeof(size) === 'undefined') {
            if (this.height() > 0) {
                size = this.height();
            } else if (this.data('size') > 0) {
Severity: Major
Found in core/js/jquery.avatar.js - About 2 hrs to fix

    Function avatar has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
    Severity: Minor
    Found in core/js/jquery.avatar.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status