{"action":"created","issue":{"url":"https://api.github.com/repos/rossPatton/stylint/issues/303","repository_url":"https://api.github.com/repos/rossPatton/stylint","labels_url":"https://api.github.com/repos/rossPatton/stylint/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/rossPatton/stylint/issues/303/comments","events_url":"https://api.github.com/repos/rossPatton/stylint/issues/303/events","html_url":"https://github.com/rossPatton/stylint/issues/303","id":155171236,"number":303,"title":"Can we use an ast to extend stylint?","user":{"login":"lyt9304","id":5561692,"avatar_url":"https://avatars.githubusercontent.com/u/5561692?v=3","gravatar_id":"","url":"https://api.github.com/users/lyt9304","html_url":"https://github.com/lyt9304","followers_url":"https://api.github.com/users/lyt9304/followers","following_url":"https://api.github.com/users/lyt9304/following{/other_user}","gists_url":"https://api.github.com/users/lyt9304/gists{/gist_id}","starred_url":"https://api.github.com/users/lyt9304/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyt9304/subscriptions","organizations_url":"https://api.github.com/users/lyt9304/orgs","repos_url":"https://api.github.com/users/lyt9304/repos","events_url":"https://api.github.com/users/lyt9304/events{/privacy}","received_events_url":"https://api.github.com/users/lyt9304/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rossPatton/stylint/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-17T03:46:41Z","updated_at":"2016-07-29T13:22:57Z","closed_at":null,"body":"Stylint is using line scan to check the code. \r\nBut I think Line Scan may be not strong enough for check code.\r\nThere are many things that we can't decide which one it is just through one line.\r\nUsing stylus ast could be easier to check some rules than line scan, and will have more accuracy.\r\n\r\nActually I'm working on extension of stylint because my company is using stylint to check our stylus code, and we have many requirements of stylint rules which is not supported yet.\r\n\r\nAnd I use ast for some checking, it is very easy to check expression and definition.\r\n\r\nIt's very hard to parse or recognize complicated expression through regex, but using ast it will be very easy to gain the result of parsing expression.\r\n\r\nMaybe we can use node scan instead of line scan in some rules, although the cost of time will be increasing.\r\n\r\nIt's just my little opinion for stylint improvment, may be it's not good.\r\n\r\nThank you for your time and opinions!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rossPatton/stylint/issues/comments/236178814","html_url":"https://github.com/rossPatton/stylint/issues/303#issuecomment-236178814","issue_url":"https://api.github.com/repos/rossPatton/stylint/issues/303","id":236178814,"user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T13:22:57Z","updated_at":"2016-07-29T13:22:57Z","body":"Great that they're merging, not sure it matters much to this effort though. "}}
{"actor":{"display_login":"SimenB"}}