CarbonCollins/tfl-unified-api-nodejs

View on GitHub
gulpfile.js

Summary

Maintainability
A
0 mins
Test Coverage

Found fs.writeFile with non literal argument at index 0
Open

      return fs.writeFile(path.join(__dirname, './docs/api.md'), output, 'utf-8');
Severity: Minor
Found in gulpfile.js by eslint

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

Trailing spaces not allowed.
Open

  return jsdoc2md.render({ 
Severity: Minor
Found in gulpfile.js by eslint

disallow trailing whitespace at the end of lines (no-trailing-spaces)

Sometimes in the course of editing files, you can end up with extra whitespace at the end of lines. These whitespace differences can be picked up by source control systems and flagged as diffs, causing frustration for developers. While this extra whitespace causes no functional issues, many code conventions require that trailing spaces be removed before check-in.

Rule Details

This rule disallows trailing whitespace (spaces, tabs, and other Unicode whitespace characters) at the end of lines.

Examples of incorrect code for this rule:

/*eslint no-trailing-spaces: "error"*/

var foo = 0;//•••••
var baz = 5;//••
//•••••

Examples of correct code for this rule:

/*eslint no-trailing-spaces: "error"*/

var foo = 0;
var baz = 5;

Options

This rule has an object option:

  • "skipBlankLines": false (default) disallows trailing whitespace on empty lines
  • "skipBlankLines": true allows trailing whitespace on empty lines

skipBlankLines

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

/*eslint no-trailing-spaces: ["error", { "skipBlankLines": true }]*/

var foo = 0;
var baz = 5;
//•••••

Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status