HuasoFoundries/systemjs-less-plugin

View on GitHub

Showing 703 of 703 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

  exports.factory = function (less) {
    return function (_less$FileManager) {
      _inherits(_class, _less$FileManager);

      function _class(options) {
Severity: Major
Found in src/jspm-less-plugin.js and 1 other location - About 4 days to fix
jspm-less-plugin/file-manager.js on lines 21..93

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 776.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

exports.factory = function (less) {
  return function (_less$FileManager) {
    _inherits(_class, _less$FileManager);

    function _class(options) {
Severity: Major
Found in jspm-less-plugin/file-manager.js and 1 other location - About 4 days to fix
src/jspm-less-plugin.js on lines 397..469

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 776.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

File jspm.config.js has 515 lines of code (exceeds 250 allowed). Consider refactoring.
Open

SystemJS.config({
  paths: {
    "github:": "jspm_packages/github/",
    "npm:": "jspm_packages/npm/",
    "less/": "src/"
Severity: Major
Found in jspm.config.js - About 1 day to fix

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

        var _createClass = function () {
            function defineProperties(target, props) {
                for (var i = 0; i < props.length; i++) {
                    var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);
                }
    Severity: Major
    Found in src/jspm-less-plugin.js and 3 other locations - About 6 hrs to fix
    jspm-less-plugin/file-manager.js on lines 3..3
    jspm-less-plugin/index.js on lines 3..3
    src/jspm-less-plugin.js on lines 345..353

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 171.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
    Severity: Major
    Found in jspm-less-plugin/index.js and 3 other locations - About 6 hrs to fix
    jspm-less-plugin/file-manager.js on lines 3..3
    src/jspm-less-plugin.js on lines 345..353
    src/jspm-less-plugin.js on lines 476..484

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 171.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
    Severity: Major
    Found in jspm-less-plugin/file-manager.js and 3 other locations - About 6 hrs to fix
    jspm-less-plugin/index.js on lines 3..3
    src/jspm-less-plugin.js on lines 345..353
    src/jspm-less-plugin.js on lines 476..484

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 171.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

      var _createClass = function () {
        function defineProperties(target, props) {
          for (var i = 0; i < props.length; i++) {
            var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);
          }
    Severity: Major
    Found in src/jspm-less-plugin.js and 3 other locations - About 6 hrs to fix
    jspm-less-plugin/file-manager.js on lines 3..3
    jspm-less-plugin/index.js on lines 3..3
    src/jspm-less-plugin.js on lines 476..484

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 171.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
    Severity: Major
    Found in jspm-less-plugin/file-manager.js and 1 other location - About 6 hrs to fix
    src/jspm-less-plugin.js on lines 355..369

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 164.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

      var _get = function get(object, property, receiver) {
        if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {
          var parent = Object.getPrototypeOf(object);if (parent === null) {
            return undefined;
          } else {
    Severity: Major
    Found in src/jspm-less-plugin.js and 1 other location - About 6 hrs to fix
    jspm-less-plugin/file-manager.js on lines 5..5

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 164.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    module.exports = function () {
        function Plugin(options) {
            _classCallCheck(this, Plugin);
    
            this.options = options || {};
    Severity: Major
    Found in jspm-less-plugin/index.js and 1 other location - About 5 hrs to fix
    src/jspm-less-plugin.js on lines 494..511

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 146.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

        module.exports = function () {
            function Plugin(options) {
                _classCallCheck(this, Plugin);
    
                this.options = options || {};
    Severity: Major
    Found in src/jspm-less-plugin.js and 1 other location - About 5 hrs to fix
    jspm-less-plugin/index.js on lines 9..26

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 146.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    File jspm-less-plugin.js has 396 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    !function(e){function t(e){Object.defineProperty(this,e,{enumerable:!0,get:function(){return this[v][e]}})}function r(e){if("undefined"!=typeof System&&System.isModule?System.isModule(e):"[object Module]"===Object.prototype.toString.call(e))return e;var t={default:e,__useDefault:e};if(e&&e.__esModule)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return new o(t)}function o(e){Object.defineProperty(this,v,{value:e}),Object.keys(e).forEach(t,this)}function n(e){return"@node/"===e.substr(0,6)?c(e,r(m(e.substr(6))),{}):p[e]}function u(e){var t=n(e);if(!t)throw new Error('Module "'+e+'" expected, but not contained in build.');if(t.module)return t.module;var r=t.linkRecord;return i(t,r),a(t,r,[]),t.module}function i(e,t){if(!t.depLoads){t.declare&&d(e,t),t.depLoads=[];for(var r=0;r<t.deps.length;r++){var o=n(t.deps[r]);t.depLoads.push(o),o.linkRecord&&i(o,o.linkRecord);var u=t.setters&&t.setters[r];u&&(u(o.module||o.linkRecord.moduleObj),o.importerSetters.push(u))}return e}}function d(t,r){var o=r.moduleObj,n=t.importerSetters,u=!1,i=r.declare.call(e,function(e,t){if(!u){if("object"==typeof e)for(var r in e)"__useDefault"!==r&&(o[r]=e[r]);else o[e]=t;u=!0;for(var i=0;i<n.length;i++)n[i](o);return u=!1,t}},{id:t.key});"function"!=typeof i?(r.setters=i.setters,r.execute=i.execute):(r.setters=[],r.execute=i)}function l(e,t,r){return p[e]={key:e,module:void 0,importerSetters:[],linkRecord:{deps:t,depLoads:void 0,declare:r,setters:void 0,execute:void 0,moduleObj:{}}}}function f(e,t,r,o){var n={};return p[e]={key:e,module:void 0,importerSetters:[],linkRecord:{deps:t,depLoads:void 0,declare:void 0,execute:o,executingRequire:r,moduleObj:{default:n,__useDefault:n},setters:void 0}}}function s(e,t,r){return function(o){for(var n=0;n<e.length;n++)if(e[n]===o){var u,i=t[n],d=i.linkRecord;return u=d?-1===r.indexOf(i)?a(i,d,r):d.moduleObj:i.module,"__useDefault"in u?u.__useDefault:u}}}function a(t,r,n){if(n.push(t),t.module)return t.module;var u;if(r.setters){for(var i=0;i<r.deps.length;i++){var d=r.depLoads[i],l=d.linkRecord;l&&-1===n.indexOf(d)&&(u=a(d,l,l.setters?n:[]))}r.execute.call(y)}else{var f={id:t.key},c=r.moduleObj;Object.defineProperty(f,"exports",{configurable:!0,set:function(e){c.default=c.__useDefault=e},get:function(){return c.__useDefault}});var p=s(r.deps,r.depLoads,n);if(!r.executingRequire)for(var i=0;i<r.deps.length;i++)p(r.deps[i]);var v=r.execute.call(e,p,c.__useDefault,f);void 0!==v?c.default=c.__useDefault=v:f.exports!==c.__useDefault&&(c.default=c.__useDefault=f.exports);var m=c.__useDefault;if(m&&m.__esModule)for(var b in m)Object.hasOwnProperty.call(m,b)&&(c[b]=m[b])}var f=t.module=new o(r.moduleObj);if(!r.setters)for(var i=0;i<t.importerSetters.length;i++)t.importerSetters[i](f);return f}function c(e,t){return p[e]={key:e,module:t,importerSetters:[],linkRecord:void 0}}var p={},v="undefined"!=typeof Symbol?Symbol():"@@baseObject";o.prototype=Object.create(null),"undefined"!=typeof Symbol&&Symbol.toStringTag&&(o.prototype[Symbol.toStringTag]="Module");var m="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&"undefined"!=typeof require.resolve&&"undefined"!=typeof process&&process.platform&&require,y={};return Object.freeze&&Object.freeze(y),function(e,t,n,i){return function(d){d(function(d){var s={_nodeRequire:m,register:l,registerDynamic:f,registry:{get:function(e){return p[e].module},set:c},newModule:function(e){return new o(e)}};c("@empty",new o({}));for(var a=0;a<t.length;a++)c(t[a],r(arguments[a],{}));i(s);var v=u(e[0]);if(e.length>1)for(var a=1;a<e.length;a++)u(e[a]);return n?v.__useDefault:(v instanceof o&&Object.defineProperty(v,"__esModule",{value:!0}),v)})}}}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this)
    
    (["a"], [], true, function($__System) {
    var require = this.require, exports = this.exports, module = this.module;
    $__System.registerDynamic("@system-env", [], true, function() {
    Severity: Minor
    Found in src/jspm-less-plugin.js - About 5 hrs to fix

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

        function _inherits(subClass, superClass) {
          if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
          }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
        }
      Severity: Major
      Found in src/jspm-less-plugin.js and 1 other location - About 4 hrs to fix
      jspm-less-plugin/file-manager.js on lines 11..11

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 133.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
      Severity: Major
      Found in jspm-less-plugin/file-manager.js and 1 other location - About 4 hrs to fix
      src/jspm-less-plugin.js on lines 383..387

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 133.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Function factory has 60 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      exports.factory = function (less) {
        return function (_less$FileManager) {
          _inherits(_class, _less$FileManager);
      
          function _class(options) {
      Severity: Major
      Found in jspm-less-plugin/file-manager.js - About 2 hrs to fix

        Function factory has 60 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          exports.factory = function (less) {
            return function (_less$FileManager) {
              _inherits(_class, _less$FileManager);
        
              function _class(options) {
        Severity: Major
        Found in src/jspm-less-plugin.js - About 2 hrs to fix

          Function factory has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
          Open

          exports.factory = function (less) {
            return function (_less$FileManager) {
              _inherits(_class, _less$FileManager);
          
              function _class(options) {
          Severity: Minor
          Found in jspm-less-plugin/file-manager.js - About 1 hr to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Line 1 exceeds the maximum line length of 150.
          Open

          !function(e){function t(e){Object.defineProperty(this,e,{enumerable:!0,get:function(){return this[v][e]}})}function r(e){if("undefined"!=typeof System&&System.isModule?System.isModule(e):"[object Module]"===Object.prototype.toString.call(e))return e;var t={default:e,__useDefault:e};if(e&&e.__esModule)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return new o(t)}function o(e){Object.defineProperty(this,v,{value:e}),Object.keys(e).forEach(t,this)}function n(e){return"@node/"===e.substr(0,6)?c(e,r(m(e.substr(6))),{}):p[e]}function u(e){var t=n(e);if(!t)throw new Error('Module "'+e+'" expected, but not contained in build.');if(t.module)return t.module;var r=t.linkRecord;return i(t,r),a(t,r,[]),t.module}function i(e,t){if(!t.depLoads){t.declare&&d(e,t),t.depLoads=[];for(var r=0;r<t.deps.length;r++){var o=n(t.deps[r]);t.depLoads.push(o),o.linkRecord&&i(o,o.linkRecord);var u=t.setters&&t.setters[r];u&&(u(o.module||o.linkRecord.moduleObj),o.importerSetters.push(u))}return e}}function d(t,r){var o=r.moduleObj,n=t.importerSetters,u=!1,i=r.declare.call(e,function(e,t){if(!u){if("object"==typeof e)for(var r in e)"__useDefault"!==r&&(o[r]=e[r]);else o[e]=t;u=!0;for(var i=0;i<n.length;i++)n[i](o);return u=!1,t}},{id:t.key});"function"!=typeof i?(r.setters=i.setters,r.execute=i.execute):(r.setters=[],r.execute=i)}function l(e,t,r){return p[e]={key:e,module:void 0,importerSetters:[],linkRecord:{deps:t,depLoads:void 0,declare:r,setters:void 0,execute:void 0,moduleObj:{}}}}function f(e,t,r,o){var n={};return p[e]={key:e,module:void 0,importerSetters:[],linkRecord:{deps:t,depLoads:void 0,declare:void 0,execute:o,executingRequire:r,moduleObj:{default:n,__useDefault:n},setters:void 0}}}function s(e,t,r){return function(o){for(var n=0;n<e.length;n++)if(e[n]===o){var u,i=t[n],d=i.linkRecord;return u=d?-1===r.indexOf(i)?a(i,d,r):d.moduleObj:i.module,"__useDefault"in u?u.__useDefault:u}}}function a(t,r,n){if(n.push(t),t.module)return t.module;var u;if(r.setters){for(var i=0;i<r.deps.length;i++){var d=r.depLoads[i],l=d.linkRecord;l&&-1===n.indexOf(d)&&(u=a(d,l,l.setters?n:[]))}r.execute.call(y)}else{var f={id:t.key},c=r.moduleObj;Object.defineProperty(f,"exports",{configurable:!0,set:function(e){c.default=c.__useDefault=e},get:function(){return c.__useDefault}});var p=s(r.deps,r.depLoads,n);if(!r.executingRequire)for(var i=0;i<r.deps.length;i++)p(r.deps[i]);var v=r.execute.call(e,p,c.__useDefault,f);void 0!==v?c.default=c.__useDefault=v:f.exports!==c.__useDefault&&(c.default=c.__useDefault=f.exports);var m=c.__useDefault;if(m&&m.__esModule)for(var b in m)Object.hasOwnProperty.call(m,b)&&(c[b]=m[b])}var f=t.module=new o(r.moduleObj);if(!r.setters)for(var i=0;i<t.importerSetters.length;i++)t.importerSetters[i](f);return f}function c(e,t){return p[e]={key:e,module:t,importerSetters:[],linkRecord:void 0}}var p={},v="undefined"!=typeof Symbol?Symbol():"@@baseObject";o.prototype=Object.create(null),"undefined"!=typeof Symbol&&Symbol.toStringTag&&(o.prototype[Symbol.toStringTag]="Module");var m="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&"undefined"!=typeof require.resolve&&"undefined"!=typeof process&&process.platform&&require,y={};return Object.freeze&&Object.freeze(y),function(e,t,n,i){return function(d){d(function(d){var s={_nodeRequire:m,register:l,registerDynamic:f,registry:{get:function(e){return p[e].module},set:c},newModule:function(e){return new o(e)}};c("@empty",new o({}));for(var a=0;a<t.length;a++)c(t[a],r(arguments[a],{}));i(s);var v=u(e[0]);if(e.length>1)for(var a=1;a<e.length;a++)u(e[a]);return n?v.__useDefault:(v instanceof o&&Object.defineProperty(v,"__esModule",{value:!0}),v)})}}}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this)
          Severity: Minor
          Found in src/jspm-less-plugin.js by eslint

          enforce a maximum line length (max-len)

          Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

          var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

          Rule Details

          This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

          Options

          This rule has a number or object option:

          • "code" (default 80) enforces a maximum line length
          • "tabWidth" (default 4) specifies the character width for tab characters
          • "comments" enforces a maximum line length for comments; defaults to value of code
          • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
          • "ignoreComments": true ignores all trailing comments and comments on their own line
          • "ignoreTrailingComments": true ignores only trailing comments
          • "ignoreUrls": true ignores lines that contain a URL
          • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
          • "ignoreTemplateLiterals": true ignores lines that contain a template literal
          • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

          code

          Examples of incorrect code for this rule with the default { "code": 80 } option:

          /*eslint max-len: ["error", 80]*/
          
          var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

          Examples of correct code for this rule with the default { "code": 80 } option:

          /*eslint max-len: ["error", 80]*/
          
          var foo = {
            "bar": "This is a bar.",
            "baz": { "qux": "This is a qux" },
            "easier": "to read"
          };

          tabWidth

          Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

          /*eslint max-len: ["error", 80, 4]*/
          
          \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

          Examples of correct code for this rule with the default { "tabWidth": 4 } option:

          /*eslint max-len: ["error", 80, 4]*/
          
          \t  \t  var foo = {
          \t  \t  \t  \t  "bar": "This is a bar.",
          \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
          \t  \t  };

          comments

          Examples of incorrect code for this rule with the { "comments": 65 } option:

          /*eslint max-len: ["error", { "comments": 65 }]*/
          
          /**
           * This is a comment that violates the maximum line length we have specified
          **/

          ignoreComments

          Examples of correct code for this rule with the { "ignoreComments": true } option:

          /*eslint max-len: ["error", { "ignoreComments": true }]*/
          
          /**
           * This is a really really really really really really really really really long comment
          **/

          ignoreTrailingComments

          Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

          /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
          
          var foo = 'bar'; // This is a really really really really really really really long comment

          ignoreUrls

          Examples of correct code for this rule with the { "ignoreUrls": true } option:

          /*eslint max-len: ["error", { "ignoreUrls": true }]*/
          
          var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

          ignoreStrings

          Examples of correct code for this rule with the { "ignoreStrings": true } option:

          /*eslint max-len: ["error", { "ignoreStrings": true }]*/
          
          var longString = 'this is a really really really really really long string!';

          ignoreTemplateLiterals

          Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

          /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
          
          var longTemplateLiteral = `this is a really really really really really long template literal!`;

          ignoreRegExpLiterals

          Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

          /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
          
          var longRegExpLiteral = /this is a really really really really really long regular expression!/;

          ignorePattern

          Examples of correct code for this rule with the { "ignorePattern": true } option:

          /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
          
          var dep = require('really/really/really/really/really/really/really/really/long/module');

          Related Rules

          • [complexity](complexity.md)
          • [max-depth](max-depth.md)
          • [max-nested-callbacks](max-nested-callbacks.md)
          • [max-params](max-params.md)
          • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

          Line 386 exceeds the maximum line length of 150.
          Open

              }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
          Severity: Minor
          Found in src/jspm-less-plugin.js by eslint

          enforce a maximum line length (max-len)

          Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

          var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

          Rule Details

          This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

          Options

          This rule has a number or object option:

          • "code" (default 80) enforces a maximum line length
          • "tabWidth" (default 4) specifies the character width for tab characters
          • "comments" enforces a maximum line length for comments; defaults to value of code
          • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
          • "ignoreComments": true ignores all trailing comments and comments on their own line
          • "ignoreTrailingComments": true ignores only trailing comments
          • "ignoreUrls": true ignores lines that contain a URL
          • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
          • "ignoreTemplateLiterals": true ignores lines that contain a template literal
          • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

          code

          Examples of incorrect code for this rule with the default { "code": 80 } option:

          /*eslint max-len: ["error", 80]*/
          
          var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

          Examples of correct code for this rule with the default { "code": 80 } option:

          /*eslint max-len: ["error", 80]*/
          
          var foo = {
            "bar": "This is a bar.",
            "baz": { "qux": "This is a qux" },
            "easier": "to read"
          };

          tabWidth

          Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

          /*eslint max-len: ["error", 80, 4]*/
          
          \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

          Examples of correct code for this rule with the default { "tabWidth": 4 } option:

          /*eslint max-len: ["error", 80, 4]*/
          
          \t  \t  var foo = {
          \t  \t  \t  \t  "bar": "This is a bar.",
          \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
          \t  \t  };

          comments

          Examples of incorrect code for this rule with the { "comments": 65 } option:

          /*eslint max-len: ["error", { "comments": 65 }]*/
          
          /**
           * This is a comment that violates the maximum line length we have specified
          **/

          ignoreComments

          Examples of correct code for this rule with the { "ignoreComments": true } option:

          /*eslint max-len: ["error", { "ignoreComments": true }]*/
          
          /**
           * This is a really really really really really really really really really long comment
          **/

          ignoreTrailingComments

          Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

          /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
          
          var foo = 'bar'; // This is a really really really really really really really long comment

          ignoreUrls

          Examples of correct code for this rule with the { "ignoreUrls": true } option:

          /*eslint max-len: ["error", { "ignoreUrls": true }]*/
          
          var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

          ignoreStrings

          Examples of correct code for this rule with the { "ignoreStrings": true } option:

          /*eslint max-len: ["error", { "ignoreStrings": true }]*/
          
          var longString = 'this is a really really really really really long string!';

          ignoreTemplateLiterals

          Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

          /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
          
          var longTemplateLiteral = `this is a really really really really really long template literal!`;

          ignoreRegExpLiterals

          Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

          /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
          
          var longRegExpLiteral = /this is a really really really really really long regular expression!/;

          ignorePattern

          Examples of correct code for this rule with the { "ignorePattern": true } option:

          /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
          
          var dep = require('really/really/really/really/really/really/really/really/long/module');

          Related Rules

          • [complexity](complexity.md)
          • [max-depth](max-depth.md)
          • [max-nested-callbacks](max-nested-callbacks.md)
          • [max-params](max-params.md)
          • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

          Line 449 exceeds the maximum line length of 150.
          Open

                      return (_get2 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), "loadFile", _this2)).call.apply(_get2, [_this2, filename, currentDirectory].concat(args));
          Severity: Minor
          Found in src/jspm-less-plugin.js by eslint

          enforce a maximum line length (max-len)

          Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

          var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

          Rule Details

          This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

          Options

          This rule has a number or object option:

          • "code" (default 80) enforces a maximum line length
          • "tabWidth" (default 4) specifies the character width for tab characters
          • "comments" enforces a maximum line length for comments; defaults to value of code
          • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
          • "ignoreComments": true ignores all trailing comments and comments on their own line
          • "ignoreTrailingComments": true ignores only trailing comments
          • "ignoreUrls": true ignores lines that contain a URL
          • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
          • "ignoreTemplateLiterals": true ignores lines that contain a template literal
          • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

          code

          Examples of incorrect code for this rule with the default { "code": 80 } option:

          /*eslint max-len: ["error", 80]*/
          
          var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

          Examples of correct code for this rule with the default { "code": 80 } option:

          /*eslint max-len: ["error", 80]*/
          
          var foo = {
            "bar": "This is a bar.",
            "baz": { "qux": "This is a qux" },
            "easier": "to read"
          };

          tabWidth

          Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

          /*eslint max-len: ["error", 80, 4]*/
          
          \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

          Examples of correct code for this rule with the default { "tabWidth": 4 } option:

          /*eslint max-len: ["error", 80, 4]*/
          
          \t  \t  var foo = {
          \t  \t  \t  \t  "bar": "This is a bar.",
          \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
          \t  \t  };

          comments

          Examples of incorrect code for this rule with the { "comments": 65 } option:

          /*eslint max-len: ["error", { "comments": 65 }]*/
          
          /**
           * This is a comment that violates the maximum line length we have specified
          **/

          ignoreComments

          Examples of correct code for this rule with the { "ignoreComments": true } option:

          /*eslint max-len: ["error", { "ignoreComments": true }]*/
          
          /**
           * This is a really really really really really really really really really long comment
          **/

          ignoreTrailingComments

          Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

          /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
          
          var foo = 'bar'; // This is a really really really really really really really long comment

          ignoreUrls

          Examples of correct code for this rule with the { "ignoreUrls": true } option:

          /*eslint max-len: ["error", { "ignoreUrls": true }]*/
          
          var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

          ignoreStrings

          Examples of correct code for this rule with the { "ignoreStrings": true } option:

          /*eslint max-len: ["error", { "ignoreStrings": true }]*/
          
          var longString = 'this is a really really really really really long string!';

          ignoreTemplateLiterals

          Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

          /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
          
          var longTemplateLiteral = `this is a really really really really really long template literal!`;

          ignoreRegExpLiterals

          Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

          /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
          
          var longRegExpLiteral = /this is a really really really really really long regular expression!/;

          ignorePattern

          Examples of correct code for this rule with the { "ignorePattern": true } option:

          /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
          
          var dep = require('really/really/really/really/really/really/really/really/long/module');

          Related Rules

          • [complexity](complexity.md)
          • [max-depth](max-depth.md)
          • [max-nested-callbacks](max-nested-callbacks.md)
          • [max-params](max-params.md)
          • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/
          Severity
          Category
          Status
          Source
          Language