howardpanton/angular-2-webpack-seed

View on GitHub

Showing 15 of 15 total issues

Gulpfile has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

@Gulpclass()
export class Gulpfile {

    // Used for setting current generate file name
    // See generate-files
Severity: Minor
Found in gulpfile.ts - About 3 hrs to fix

    File gulpfile.ts has 276 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { Gulpclass, Task, SequenceTask  } from 'gulpclass/Decorators';
    import { ensureImport, setTemplateFiles }  from './templates/template';
    
    const _ = require('lodash');
    
    
    Severity: Minor
    Found in gulpfile.ts - About 2 hrs to fix

      Function setTemplateFiles has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function setTemplateFiles(args: any) {
              let files: any;
              let argName = {
                  value: ''
              };
      Severity: Minor
      Found in templates/template.ts - About 1 hr to fix

        Function log has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

        function log(msg: any) {
            if (typeof(msg) === 'object') {
                for (let item in msg) {
                    if (msg.hasOwnProperty(item)) {
                        $.util.log($.util.colors.blue(msg[item]));
        Severity: Minor
        Found in gulpfile.ts - About 35 mins 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

        Function setTemplateFiles has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

        export function setTemplateFiles(args: any) {
                let files: any;
                let argName = {
                    value: ''
                };
        Severity: Minor
        Found in templates/template.ts - About 25 mins 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

        Outlines should only be modified using :focus.
        Open

        a:active, a:hover {
        Severity: Minor
        Found in public/css/styles.css by csslint

        The property -moz-appearance is compatible with -webkit-appearance and should be included as well.
        Open

          -webkit-appearance: textfield;
        Severity: Minor
        Found in public/css/styles.css by csslint

        The property -moz-appearance is compatible with -webkit-appearance and should be included as well.
        Open

          -webkit-appearance: none; }
        Severity: Minor
        Found in public/css/styles.css by csslint

        The box-sizing property isn't supported in IE6 and IE7.
        Open

          box-sizing: content-box;
        Severity: Minor
        Found in public/css/styles.css by csslint

        The box-sizing property isn't supported in IE6 and IE7.
        Open

          box-sizing: content-box;
        Severity: Minor
        Found in public/css/styles.css by csslint

        The property -moz-appearance is compatible with -webkit-appearance and should be included as well.
        Open

          -webkit-appearance: button;
        Severity: Minor
        Found in public/css/styles.css by csslint

        The box-sizing property isn't supported in IE6 and IE7.
        Open

          box-sizing: border-box;
        Severity: Minor
        Found in public/css/styles.css by csslint

        Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
        Open

        import rollup      from 'rollup';
        Severity: Minor
        Found in rollup.js by eslint

        For more information visit Source: http://eslint.org/docs/rules/

        Unqualified attribute selectors are known to be slow.
        Open

        [hidden],
        Severity: Minor
        Found in public/css/styles.css by csslint

        Expected (none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical) but found 'textfield'.
        Open

          -webkit-appearance: textfield;
        Severity: Minor
        Found in public/css/styles.css by csslint
        Severity
        Category
        Status
        Source
        Language