GabiGrin/angular-validation-messages

View on GitHub

Showing 3 of 3 total issues

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

module.exports = function (grunt) {

  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

  grunt.initConfig({
Severity: Major
Found in Gruntfile.js - About 3 hrs to fix

    Function compile has 72 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            compile: function () {
              return function postLink(scope, elem, attrs, ctrls) {
                var localOpts = $parse(attrs.vmsg || '')(scope);
                var formOpts = ctrls[1].getOptions();
                var opts = ValidationMessagesHelper.getOptions(localOpts, formOpts);
    Severity: Major
    Found in src/model-directive.js - About 2 hrs to fix

      Function postLink has 70 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                return function postLink(scope, elem, attrs, ctrls) {
                  var localOpts = $parse(attrs.vmsg || '')(scope);
                  var formOpts = ctrls[1].getOptions();
                  var opts = ValidationMessagesHelper.getOptions(localOpts, formOpts);
                  var messageElem = ValidationMessagesHelper.createMessageElement(scope, opts);
      Severity: Major
      Found in src/model-directive.js - About 2 hrs to fix
        Severity
        Category
        Status
        Source
        Language