jackmellis/vuenit

View on GitHub
lib/directive.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

module.exports = function (directives, options) {
  options = options || {};
  var defaultOptions = {
    props : {},
    element : 'div',
Severity: Major
Found in lib/directive.js - About 2 hrs to fix

    Function directiveString has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var directiveString = [].concat(directives).map(function(directiveObj){
        if (typeof directiveObj === 'string'){
          (function(){
            var tmp = directiveObj;
            directiveObj = {};
    Severity: Minor
    Found in lib/directive.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status