HuasoFoundries/systemjs-less-plugin

View on GitHub
jspm.config.js

Summary

Maintainability
C
1 day
Test Coverage

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

    Newline required at end of file but not found.
    Open

    });
    Severity: Minor
    Found in jspm.config.js by eslint

    require or disallow newline at the end of files (eol-last)

    Trailing newlines in non-empty files are a common UNIX idiom. Benefits of trailing newlines include the ability to concatenate or append to files as well as output files to the terminal without interfering with shell prompts.

    Rule Details

    This rule enforces at least one newline (or absence thereof) at the end of non-empty files.

    Prior to v0.16.0 this rule also enforced that there was only a single line at the end of the file. If you still want this behaviour, consider enabling [no-multiple-empty-lines](no-multiple-empty-lines.md) with maxEOF and/or [no-trailing-spaces](no-trailing-spaces.md).

    Examples of incorrect code for this rule:

    /*eslint eol-last: ["error", "always"]*/
    
    function doSmth() {
      var foo = 2;
    }

    Examples of correct code for this rule:

    /*eslint eol-last: ["error", "always"]*/
    
    function doSmth() {
      var foo = 2;
    }\n

    Options

    This rule has a string option:

    • "always" (default) enforces that files end with a newline (LF)
    • "never" enforces that files do not end with a newline
    • "unix" (deprecated) is identical to "always"
    • "windows" (deprecated) is identical to "always", but will use a CRLF character when autofixing

    Deprecated: The options "unix" and "windows" are deprecated. If you need to enforce a specific linebreak style, use this rule in conjunction with linebreak-style. Source: http://eslint.org/docs/rules/

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

          "npm:readable-stream@2.2.6": {
            "map": {
              "isarray": "npm:isarray@1.0.0",
              "inherits": "npm:inherits@2.0.3",
              "string_decoder": "npm:string_decoder@0.10.31",
    Severity: Minor
    Found in jspm.config.js and 2 other locations - About 35 mins to fix
    jspm.config.js on lines 442..452
    jspm.config.js on lines 473..483

    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 47.

    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 3 locations. Consider refactoring.
    Open

          "npm:elliptic@6.4.0": {
            "map": {
              "hash.js": "npm:hash.js@1.0.3",
              "inherits": "npm:inherits@2.0.3",
              "bn.js": "npm:bn.js@4.11.6",
    Severity: Minor
    Found in jspm.config.js and 2 other locations - About 35 mins to fix
    jspm.config.js on lines 442..452
    jspm.config.js on lines 453..463

    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 47.

    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 3 locations. Consider refactoring.
    Open

          "npm:browserify-sign@4.0.4": {
            "map": {
              "parse-asn1": "npm:parse-asn1@5.1.0",
              "browserify-rsa": "npm:browserify-rsa@4.0.1",
              "inherits": "npm:inherits@2.0.3",
    Severity: Minor
    Found in jspm.config.js and 2 other locations - About 35 mins to fix
    jspm.config.js on lines 453..463
    jspm.config.js on lines 473..483

    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 47.

    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

    There are no issues that match your filters.

    Category
    Status