{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/1605","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/1605/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/1605/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/1605/events","html_url":"https://github.com/palantir/tslint/issues/1605","id":181306263,"number":1605,"title":"variable-name: allow-leading-underscore does not allow for multiple underscores","user":{"login":"iaindurham","id":3625243,"avatar_url":"https://avatars.githubusercontent.com/u/3625243?v=3","gravatar_id":"","url":"https://api.github.com/users/iaindurham","html_url":"https://github.com/iaindurham","followers_url":"https://api.github.com/users/iaindurham/followers","following_url":"https://api.github.com/users/iaindurham/following{/other_user}","gists_url":"https://api.github.com/users/iaindurham/gists{/gist_id}","starred_url":"https://api.github.com/users/iaindurham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iaindurham/subscriptions","organizations_url":"https://api.github.com/users/iaindurham/orgs","repos_url":"https://api.github.com/users/iaindurham/repos","events_url":"https://api.github.com/users/iaindurham/events{/privacy}","received_events_url":"https://api.github.com/users/iaindurham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-06T01:43:20Z","updated_at":"2016-11-27T08:56:50Z","closed_at":null,"body":"First a question to see if this is a a bug or not... \n\nAt the moment the `allow-leading-underscore` does not allow for multiple leading underscores. Is this an intentional decision for this rule to only allow a single leading underscore?\n\nThere is a closed issue (https://github.com/palantir/tslint/issues/189) from Aug 2014 about this same thing and the answer was to include the `allow-leading-underscore` option. So I don't know if the code has been modified since to change the behaviour of this rule?\n### Bug Report\n- **TSLint version**: `3.15.1`\n- **TypeScript version**: `2.0.3`\n- **Running TSLint via**: CLI\n#### TypeScript code being linted\n\n``` ts\nprivate __form;\n```\n\nwith `tslint.json` configuration:\n\n``` json\n\"variable-name\": [true,\n    \"check-format\",\n    \"allow-leading-underscore\"\n]\n```\n#### Actual behavior\n\nFails with error:\n\n```\nvariable name must be in camelcase or uppercase\n```\n#### Expected behavior\n\nShould allow multiple underscores at the start of a variable\n"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/263110003","html_url":"https://github.com/palantir/tslint/issues/1605#issuecomment-263110003","issue_url":"https://api.github.com/repos/palantir/tslint/issues/1605","id":263110003,"user":{"login":"dupski","id":8173903,"avatar_url":"https://avatars.githubusercontent.com/u/8173903?v=3","gravatar_id":"","url":"https://api.github.com/users/dupski","html_url":"https://github.com/dupski","followers_url":"https://api.github.com/users/dupski/followers","following_url":"https://api.github.com/users/dupski/following{/other_user}","gists_url":"https://api.github.com/users/dupski/gists{/gist_id}","starred_url":"https://api.github.com/users/dupski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dupski/subscriptions","organizations_url":"https://api.github.com/users/dupski/orgs","repos_url":"https://api.github.com/users/dupski/repos","events_url":"https://api.github.com/users/dupski/events{/privacy}","received_events_url":"https://api.github.com/users/dupski/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T08:56:50Z","updated_at":"2016-11-27T08:56:50Z","body":"I have also come across this issue (trying to use `__fields` as a variable name)"}}
{"actor":{"display_login":"dupski"}}