panuhorsmalahti / gulp-tslint

TypeScript linter plugin for Gulp
MIT License
118 stars 44 forks source link

tslint cli correctly parsing JSDOC comments but not gulp task #51

Closed frankandrobot closed 8 years ago

frankandrobot commented 8 years ago

The code below parses when running tslint directly in the IDE. However, it fails from gulp-tslint with error asterisks in jsdoc must be aligned

/**
  * Accepts a C-printf style invocation.
  * Ex: foo('qcycle', "Expected promise to be resolved with value other than itself '{0}'", val));
  *
  * @param prefix
  * @param message
  * @param messageValues
  * @returns {Error}
  */
export default function foo(prefix : string, messageTemplate : string, ...messageValues : any[]) {
panuhorsmalahti commented 8 years ago

The asterisks are not aligned in your example. It should be like this:

/**
 * Accepts a C-printf style invocation.
 * Ex: foo('qcycle', "Expected promise to be resolved with value other than itself '{0}'", val));
 *

Note that there is only one space in rows 2 to 4, not two spaces like in your example.

frankandrobot commented 8 years ago

Yea like I said, the cli says it's correct... The gulp task and the cli differ.Upon further investigation, it's probably a bug in tslint.

    Thanks!Uriel AvalosLead Developer ConsultantChander Dhall, Inc
     ---- On Sat, 16 Jan 2016 11:15:48 -0600  notifications@github.com  wrote ----The asterisks are not aligned in your example. It should be like this:

/**

Note that there is only one space in rows 2 to 4, not two spaces like in your example. —Reply to this email directly or view it on GitHub.