{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/73","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/73/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/73/events","html_url":"https://github.com/stylelint/stylelint/issues/73","id":77095927,"number":73,"title":"Consider using -before and -after rules instead of before/after options","user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-16T18:16:22Z","updated_at":"2015-05-16T18:57:29Z","closed_at":null,"body":"After writing *a lot* of tests now, I'm think that things would be simpler if we separated out before/after rules instead of using options. So we'd have, e.g., `block-opening-brace-space-before` and `block-opening-brace-space-after` (like JSCS).\r\n\r\nThe reasoning is this:\r\n\r\n- Each rule function would be that much simpler, that much more focused.\r\n- Tests would have fewer option-permutations to test -- so we could get by writing way fewer, more straightforward tests. Right now if we want to be really thorough we have to make sure that each permutation works as expected and that changing one option doesn't affect the outcome of the other option; but if we had separate rules each of those would be tested independently and we wouldn't have to worry about them possibly overlapping and affecting each other.\r\n\r\nAny opposition?"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/102666331","html_url":"https://github.com/stylelint/stylelint/issues/73#issuecomment-102666331","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/73","id":102666331,"user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T18:57:29Z","updated_at":"2015-05-16T18:57:29Z","body":"And thanks to you. I think the process & communication has been going really well."}}