Showing 15 of 15 total issues
Gulpfile
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@Gulpclass()
export class Gulpfile {
// Used for setting current generate file name
// See generate-files
File gulpfile.ts
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { Gulpclass, Task, SequenceTask } from 'gulpclass/Decorators';
import { ensureImport, setTemplateFiles } from './templates/template';
const _ = require('lodash');
Function setTemplateFiles
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function setTemplateFiles(args: any) {
let files: any;
let argName = {
value: ''
};
Function log
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
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]));
- Read upRead up
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
Open
export function setTemplateFiles(args: any) {
let files: any;
let argName = {
value: ''
};
- Read upRead up
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
Open
a:active, a:hover {
- Exclude checks
The property -moz-appearance is compatible with -webkit-appearance and should be included as well. Open
Open
-webkit-appearance: textfield;
- Exclude checks
The property -moz-appearance is compatible with -webkit-appearance and should be included as well. Open
Open
-webkit-appearance: none; }
- Exclude checks
The box-sizing property isn't supported in IE6 and IE7. Open
Open
box-sizing: content-box;
- Exclude checks
The box-sizing property isn't supported in IE6 and IE7. Open
Open
box-sizing: content-box;
- Exclude checks
The property -moz-appearance is compatible with -webkit-appearance and should be included as well. Open
Open
-webkit-appearance: button;
- Exclude checks
The box-sizing property isn't supported in IE6 and IE7. Open
Open
box-sizing: border-box;
- Exclude checks
Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Open
Open
import rollup from 'rollup';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Unqualified attribute selectors are known to be slow. Open
Open
[hidden],
- Exclude checks
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
Open
-webkit-appearance: textfield;
- Exclude checks