bradberger/angular-material-calendar

View on GitHub

Showing 10 of 52 total issues

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

        link: function ($scope, $element, $attrs) {

            // Add the CSS here.
            injectCss();

Severity: Major
Found in src/angular-material-calendar.js - About 7 hrs to fix

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

        link: function ($scope, $element, $attrs) {

            // Add the CSS here.
            injectCss();

Severity: Major
Found in angular-material-calendar.js - About 7 hrs to fix

File angular-material-calendar.js has 360 lines of code (exceeds 250 allowed). Consider refactoring.
Open

angular.module("materialCalendar", ["ngMaterial", "ngSanitize"]);

angular.module("materialCalendar").constant("materialCalendar.config", {
    version: "0.2.13",
    debug: document.domain.indexOf("localhost") > -1
Severity: Minor
Found in src/angular-material-calendar.js - About 4 hrs to fix

File angular-material-calendar.js has 358 lines of code (exceeds 250 allowed). Consider refactoring.
Open

angular.module("materialCalendar", ["ngMaterial", "ngSanitize"]);

angular.module("materialCalendar").constant("materialCalendar.config", {
    version: "0.2.13",
    debug: document.domain.indexOf("localhost") > -1
Severity: Minor
Found in angular-material-calendar.js - About 4 hrs to fix

Function Calendar has 95 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function Calendar(year, month, options) {

        var now = new Date();

        this.setWeekStartsOn = function (i) {
Severity: Major
Found in src/angular-material-calendar.js - About 3 hrs to fix

Function Calendar has 95 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function Calendar(year, month, options) {

        var now = new Date();

        this.setWeekStartsOn = function (i) {
Severity: Major
Found in angular-material-calendar.js - About 3 hrs to fix

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

        this.init = function (year, month) {

            var now = new Date();
            this.year = angular.isDefined(year) ? year : now.getFullYear();
            this.month = angular.isDefined(month) ? month : now.getMonth();
Severity: Minor
Found in src/angular-material-calendar.js - About 1 hr to fix

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

        this.init = function (year, month) {

            var now = new Date();
            this.year = angular.isDefined(year) ? year : now.getFullYear();
            this.month = angular.isDefined(month) ? month : now.getMonth();
Severity: Minor
Found in angular-material-calendar.js - About 1 hr to fix

Function handleDayClick has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            $scope.handleDayClick = function (date) {

                if($scope.disableFutureSelection && date > new Date()) {
                    return;
                }
Severity: Minor
Found in src/angular-material-calendar.js - About 1 hr to fix

Function handleDayClick has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            $scope.handleDayClick = function (date) {

                if($scope.disableFutureSelection && date > new Date()) {
                    return;
                }
Severity: Minor
Found in angular-material-calendar.js - About 1 hr to fix
Severity
Category
Status
Source
Language