{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib/issues/173","repository_url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib","labels_url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib/issues/173/comments","events_url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib/issues/173/events","html_url":"https://github.com/Microsoft/tslint-microsoft-contrib/issues/173","id":164582773,"number":173,"title":"How to use the custom formatters?","user":{"login":"chrismbarr","id":463685,"avatar_url":"https://avatars.githubusercontent.com/u/463685?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismbarr","html_url":"https://github.com/chrismbarr","followers_url":"https://api.github.com/users/chrismbarr/followers","following_url":"https://api.github.com/users/chrismbarr/following{/other_user}","gists_url":"https://api.github.com/users/chrismbarr/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismbarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismbarr/subscriptions","organizations_url":"https://api.github.com/users/chrismbarr/orgs","repos_url":"https://api.github.com/users/chrismbarr/repos","events_url":"https://api.github.com/users/chrismbarr/events{/privacy}","received_events_url":"https://api.github.com/users/chrismbarr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-08T17:54:42Z","updated_at":"2016-07-14T06:26:29Z","closed_at":null,"body":"The [formatters referenced in the readme file](https://github.com/Microsoft/tslint-microsoft-contrib/blob/master/README.md#supported-formatters) seem be described as actually modifying the source code of the passed in TypeScript files.  This seems to be a little different than the original design for the formatters.  Is this correct?\r\n\r\nI have tried, but I cannot get these formatters to work the way they are described. I am using [gulp-tslint](https://github.com/panuhorsmalahti/gulp-tslint) and my basic code is below\r\n\r\n```js\r\nvar plumber = require(\"gulp-plumber\");\r\nvar tsLint = require(\"gulp-tslint\");\r\n\r\ngulp.task(\"ts-fix\", function () {\r\n  return gulp.src([\"app/**/*.ts\"])\r\n    .pipe(plumber())\r\n    .pipe(tsLint({\r\n      formattersDirectory: \"./node_modules/tslint-microsoft-contrib\",\r\n      formatter: \"fix-no-var-keyword\"\r\n    }))\r\n    .pipe(tsLint.report());\r\n});\r\n```\r\n\r\nin my `tslint.json` file the `no-var-keyword` rule is enabled.  I do get failure messages about the `var` keyword being used, but no code is changed and [the message that this formatter should log to the console](https://github.com/Microsoft/tslint-microsoft-contrib/blob/master/src/fixNoVarKeywordFormatter.ts#L25) is not present.\r\n\r\nAm I misunderstanding something, or do I not have this set up incorrectly?"},"comment":{"url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib/issues/comments/232567898","html_url":"https://github.com/Microsoft/tslint-microsoft-contrib/issues/173#issuecomment-232567898","issue_url":"https://api.github.com/repos/Microsoft/tslint-microsoft-contrib/issues/173","id":232567898,"user":{"login":"HamletDRC","id":186401,"avatar_url":"https://avatars.githubusercontent.com/u/186401?v=3","gravatar_id":"","url":"https://api.github.com/users/HamletDRC","html_url":"https://github.com/HamletDRC","followers_url":"https://api.github.com/users/HamletDRC/followers","following_url":"https://api.github.com/users/HamletDRC/following{/other_user}","gists_url":"https://api.github.com/users/HamletDRC/gists{/gist_id}","starred_url":"https://api.github.com/users/HamletDRC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HamletDRC/subscriptions","organizations_url":"https://api.github.com/users/HamletDRC/orgs","repos_url":"https://api.github.com/users/HamletDRC/repos","events_url":"https://api.github.com/users/HamletDRC/events{/privacy}","received_events_url":"https://api.github.com/users/HamletDRC/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T06:26:29Z","updated_at":"2016-07-14T06:26:29Z","body":"I'm very sorry to hear that these formatters are not working for you. I wrote them for MSE and they worked there with no issues but clearly we have some different configuration. I am going to change the title of this and mark it as a bug so that we fix it. "}}
{"actor":{"display_login":"HamletDRC"}}