{"action":"created","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1956","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1956/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1956/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1956/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/1956","id":114796709,"number":1956,"title":"disallowNewlineBeforeBlockStatements and multiline statements","user":{"login":"ficristo","id":10583268,"avatar_url":"https://avatars.githubusercontent.com/u/10583268?v=3","gravatar_id":"","url":"https://api.github.com/users/ficristo","html_url":"https://github.com/ficristo","followers_url":"https://api.github.com/users/ficristo/followers","following_url":"https://api.github.com/users/ficristo/following{/other_user}","gists_url":"https://api.github.com/users/ficristo/gists{/gist_id}","starred_url":"https://api.github.com/users/ficristo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ficristo/subscriptions","organizations_url":"https://api.github.com/users/ficristo/orgs","repos_url":"https://api.github.com/users/ficristo/repos","events_url":"https://api.github.com/users/ficristo/events{/privacy}","received_events_url":"https://api.github.com/users/ficristo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/new%20rule","name":"new rule","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-03T11:34:07Z","updated_at":"2015-11-04T19:50:41Z","closed_at":null,"body":"Usually I write code like this:\r\n`if (conditions) {`\r\nso I enabled the rule `disallowNewlineBeforeBlockStatements`.\r\n\r\nBut sometimes, if the conditions are too long, I would like to enforce the brace to new line:\r\n```javascript\r\nif (cond1 && cond2 &&\r\n    cond3...)\r\n{\r\n```\r\n\r\nThe same thing should work for `for`\r\n```javascript\r\nfor (inits;\r\n     conds;\r\n     steps)\r\n{\r\n```\r\n\r\nand in this case would be nice to enforce that `inits`, `conds` and `steps` are on different lines.\r\n\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27924982-disallownewlinebeforeblockstatements-and-multiline-statements?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/153844127","html_url":"https://github.com/jscs-dev/node-jscs/issues/1956#issuecomment-153844127","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1956","id":153844127,"user":{"login":"ficristo","id":10583268,"avatar_url":"https://avatars.githubusercontent.com/u/10583268?v=3","gravatar_id":"","url":"https://api.github.com/users/ficristo","html_url":"https://github.com/ficristo","followers_url":"https://api.github.com/users/ficristo/followers","following_url":"https://api.github.com/users/ficristo/following{/other_user}","gists_url":"https://api.github.com/users/ficristo/gists{/gist_id}","starred_url":"https://api.github.com/users/ficristo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ficristo/subscriptions","organizations_url":"https://api.github.com/users/ficristo/orgs","repos_url":"https://api.github.com/users/ficristo/repos","events_url":"https://api.github.com/users/ficristo/events{/privacy}","received_events_url":"https://api.github.com/users/ficristo/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T19:50:40Z","updated_at":"2015-11-04T19:50:40Z","body":"@markelog I have some trouble to run `npm test` on my windows machine so If I resolve them maybe I can take a look in the future.\r\n"}}