{"action":"created","comment":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/comments/57744639","id":57744639,"diff_hunk":"@@ -0,0 +1,89 @@\n+import testRule from \"../../../testUtils/stylelint-test-rule-tape\"\n+import rule, { ruleName, messages } from \"..\"\n+\n+testRule(rule, {\n+  ruleName,\n+  config: [true],\n+\n+  accept: [ {\n+    code: \"input { top: 0; }\",\n+  }, {\n+    code: \".class { top: 0; }\",\n+  }, {\n+    code: \"div>.class { top: 0; }\",\n+  }, {\n+    code: \"div+.class { top: 0; }\",\n+  }, {\n+    code: \"div~.class { top: 0; }\",\n+  }, {\n+    code: \"#id { top: 0; }\",\n+  }, {\n+    code: \"div>#id { top: 0; }\",\n+  }, {\n+    code: \"div+#id { top: 0; }\",\n+  }, {\n+    code: \"div~#id { top: 0; }\",\n+  } ],\n+\n+  reject: [ {\n+    code: \"input[type=\\\"button\\\"] { top: 0; }\",\n+    message: messages.rejected,\n+  }, {\n+    code: \"div.class { top: 0; }\",\n+    message: messages.rejected,\n+  }, {\n+    code: \"div#id { top: 0; }\",\n+    message: messages.rejected,\n+  } ],\n+})","path":"src/rules/selector-no-qualifying-type/__test__/index.js","position":38,"original_position":38,"commit_id":"40a1d1d84fd3c74903e567eff4817224fbcec52f","original_commit_id":"40a1d1d84fd3c74903e567eff4817224fbcec52f","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},"body":"I think so, because I think that's probably one of the first bug reports that will come in for this rule.","created_at":"2016-03-29T15:33:54Z","updated_at":"2016-03-29T15:33:54Z","html_url":"https://github.com/stylelint/stylelint/pull/965#discussion_r57744639","pull_request_url":"https://api.github.com/repos/stylelint/stylelint/pulls/965","_links":{"self":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/comments/57744639"},"html":{"href":"https://github.com/stylelint/stylelint/pull/965#discussion_r57744639"},"pull_request":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/965"}}},"pull_request":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/965","id":63932236,"html_url":"https://github.com/stylelint/stylelint/pull/965","diff_url":"https://github.com/stylelint/stylelint/pull/965.diff","patch_url":"https://github.com/stylelint/stylelint/pull/965.patch","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/965","number":965,"state":"open","locked":false,"title":"Add new rule selector-no-qualifying-type","user":{"login":"timothyneiljohnson","id":2107746,"avatar_url":"https://avatars.githubusercontent.com/u/2107746?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyneiljohnson","html_url":"https://github.com/timothyneiljohnson","followers_url":"https://api.github.com/users/timothyneiljohnson/followers","following_url":"https://api.github.com/users/timothyneiljohnson/following{/other_user}","gists_url":"https://api.github.com/users/timothyneiljohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyneiljohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyneiljohnson/subscriptions","organizations_url":"https://api.github.com/users/timothyneiljohnson/orgs","repos_url":"https://api.github.com/users/timothyneiljohnson/repos","events_url":"https://api.github.com/users/timothyneiljohnson/events{/privacy}","received_events_url":"https://api.github.com/users/timothyneiljohnson/received_events","type":"User","site_admin":false},"body":"Adding new rule selector-no-qualifying-type. \r\n\r\nNOTE: Don't merge.\r\n\r\nFirst rule here, so admittedly not sure how to get this test up and running (+ any linting). Tests for other rules seem to be working, will keep trying to solve - but thought it would be good to get the initial PR out here for comment.","created_at":"2016-03-23T18:39:23Z","updated_at":"2016-03-29T15:33:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14c3ca6caf8b7a95b874fc406f9a40642aa7da8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stylelint/stylelint/pulls/965/commits","review_comments_url":"https://api.github.com/repos/stylelint/stylelint/pulls/965/comments","review_comment_url":"https://api.github.com/repos/stylelint/stylelint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/965/comments","statuses_url":"https://api.github.com/repos/stylelint/stylelint/statuses/40a1d1d84fd3c74903e567eff4817224fbcec52f","head":{"label":"timothyneiljohnson:tim/selector-no-qualifying-type","ref":"tim/selector-no-qualifying-type","sha":"40a1d1d84fd3c74903e567eff4817224fbcec52f","user":{"login":"timothyneiljohnson","id":2107746,"avatar_url":"https://avatars.githubusercontent.com/u/2107746?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyneiljohnson","html_url":"https://github.com/timothyneiljohnson","followers_url":"https://api.github.com/users/timothyneiljohnson/followers","following_url":"https://api.github.com/users/timothyneiljohnson/following{/other_user}","gists_url":"https://api.github.com/users/timothyneiljohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyneiljohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyneiljohnson/subscriptions","organizations_url":"https://api.github.com/users/timothyneiljohnson/orgs","repos_url":"https://api.github.com/users/timothyneiljohnson/repos","events_url":"https://api.github.com/users/timothyneiljohnson/events{/privacy}","received_events_url":"https://api.github.com/users/timothyneiljohnson/received_events","type":"User","site_admin":false},"repo":{"id":54571628,"name":"stylelint","full_name":"timothyneiljohnson/stylelint","owner":{"login":"timothyneiljohnson","id":2107746,"avatar_url":"https://avatars.githubusercontent.com/u/2107746?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyneiljohnson","html_url":"https://github.com/timothyneiljohnson","followers_url":"https://api.github.com/users/timothyneiljohnson/followers","following_url":"https://api.github.com/users/timothyneiljohnson/following{/other_user}","gists_url":"https://api.github.com/users/timothyneiljohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyneiljohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyneiljohnson/subscriptions","organizations_url":"https://api.github.com/users/timothyneiljohnson/orgs","repos_url":"https://api.github.com/users/timothyneiljohnson/repos","events_url":"https://api.github.com/users/timothyneiljohnson/events{/privacy}","received_events_url":"https://api.github.com/users/timothyneiljohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timothyneiljohnson/stylelint","description":"A mighty, modern CSS linter","fork":true,"url":"https://api.github.com/repos/timothyneiljohnson/stylelint","forks_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/forks","keys_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/teams","hooks_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/hooks","issue_events_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/issues/events{/number}","events_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/events","assignees_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/assignees{/user}","branches_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/branches{/branch}","tags_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/tags","blobs_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/git/refs{/sha}","trees_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/statuses/{sha}","languages_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/languages","stargazers_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/stargazers","contributors_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/contributors","subscribers_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/subscribers","subscription_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/subscription","commits_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/commits{/sha}","git_commits_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/git/commits{/sha}","comments_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/comments{/number}","issue_comment_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/issues/comments{/number}","contents_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/contents/{+path}","compare_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/merges","archive_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/downloads","issues_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/issues{/number}","pulls_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/pulls{/number}","milestones_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/milestones{/number}","notifications_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/labels{/name}","releases_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/releases{/id}","deployments_url":"https://api.github.com/repos/timothyneiljohnson/stylelint/deployments","created_at":"2016-03-23T15:35:25Z","updated_at":"2016-03-23T15:35:26Z","pushed_at":"2016-03-29T14:20:12Z","git_url":"git://github.com/timothyneiljohnson/stylelint.git","ssh_url":"git@github.com:timothyneiljohnson/stylelint.git","clone_url":"https://github.com/timothyneiljohnson/stylelint.git","svn_url":"https://github.com/timothyneiljohnson/stylelint","homepage":"http://stylelint.io/","size":2751,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stylelint:master","ref":"master","sha":"edeed685088bc1ff4845d0431479947c94ab391c","user":{"login":"stylelint","id":10076935,"avatar_url":"https://avatars.githubusercontent.com/u/10076935?v=3","gravatar_id":"","url":"https://api.github.com/users/stylelint","html_url":"https://github.com/stylelint","followers_url":"https://api.github.com/users/stylelint/followers","following_url":"https://api.github.com/users/stylelint/following{/other_user}","gists_url":"https://api.github.com/users/stylelint/gists{/gist_id}","starred_url":"https://api.github.com/users/stylelint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylelint/subscriptions","organizations_url":"https://api.github.com/users/stylelint/orgs","repos_url":"https://api.github.com/users/stylelint/repos","events_url":"https://api.github.com/users/stylelint/events{/privacy}","received_events_url":"https://api.github.com/users/stylelint/received_events","type":"Organization","site_admin":false},"repo":{"id":27549019,"name":"stylelint","full_name":"stylelint/stylelint","owner":{"login":"stylelint","id":10076935,"avatar_url":"https://avatars.githubusercontent.com/u/10076935?v=3","gravatar_id":"","url":"https://api.github.com/users/stylelint","html_url":"https://github.com/stylelint","followers_url":"https://api.github.com/users/stylelint/followers","following_url":"https://api.github.com/users/stylelint/following{/other_user}","gists_url":"https://api.github.com/users/stylelint/gists{/gist_id}","starred_url":"https://api.github.com/users/stylelint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stylelint/subscriptions","organizations_url":"https://api.github.com/users/stylelint/orgs","repos_url":"https://api.github.com/users/stylelint/repos","events_url":"https://api.github.com/users/stylelint/events{/privacy}","received_events_url":"https://api.github.com/users/stylelint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stylelint/stylelint","description":"A mighty, modern CSS linter","fork":false,"url":"https://api.github.com/repos/stylelint/stylelint","forks_url":"https://api.github.com/repos/stylelint/stylelint/forks","keys_url":"https://api.github.com/repos/stylelint/stylelint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stylelint/stylelint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stylelint/stylelint/teams","hooks_url":"https://api.github.com/repos/stylelint/stylelint/hooks","issue_events_url":"https://api.github.com/repos/stylelint/stylelint/issues/events{/number}","events_url":"https://api.github.com/repos/stylelint/stylelint/events","assignees_url":"https://api.github.com/repos/stylelint/stylelint/assignees{/user}","branches_url":"https://api.github.com/repos/stylelint/stylelint/branches{/branch}","tags_url":"https://api.github.com/repos/stylelint/stylelint/tags","blobs_url":"https://api.github.com/repos/stylelint/stylelint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stylelint/stylelint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stylelint/stylelint/git/refs{/sha}","trees_url":"https://api.github.com/repos/stylelint/stylelint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stylelint/stylelint/statuses/{sha}","languages_url":"https://api.github.com/repos/stylelint/stylelint/languages","stargazers_url":"https://api.github.com/repos/stylelint/stylelint/stargazers","contributors_url":"https://api.github.com/repos/stylelint/stylelint/contributors","subscribers_url":"https://api.github.com/repos/stylelint/stylelint/subscribers","subscription_url":"https://api.github.com/repos/stylelint/stylelint/subscription","commits_url":"https://api.github.com/repos/stylelint/stylelint/commits{/sha}","git_commits_url":"https://api.github.com/repos/stylelint/stylelint/git/commits{/sha}","comments_url":"https://api.github.com/repos/stylelint/stylelint/comments{/number}","issue_comment_url":"https://api.github.com/repos/stylelint/stylelint/issues/comments{/number}","contents_url":"https://api.github.com/repos/stylelint/stylelint/contents/{+path}","compare_url":"https://api.github.com/repos/stylelint/stylelint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stylelint/stylelint/merges","archive_url":"https://api.github.com/repos/stylelint/stylelint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stylelint/stylelint/downloads","issues_url":"https://api.github.com/repos/stylelint/stylelint/issues{/number}","pulls_url":"https://api.github.com/repos/stylelint/stylelint/pulls{/number}","milestones_url":"https://api.github.com/repos/stylelint/stylelint/milestones{/number}","notifications_url":"https://api.github.com/repos/stylelint/stylelint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stylelint/stylelint/labels{/name}","releases_url":"https://api.github.com/repos/stylelint/stylelint/releases{/id}","deployments_url":"https://api.github.com/repos/stylelint/stylelint/deployments","created_at":"2014-12-04T16:25:23Z","updated_at":"2016-03-29T15:08:47Z","pushed_at":"2016-03-29T14:20:13Z","git_url":"git://github.com/stylelint/stylelint.git","ssh_url":"git@github.com:stylelint/stylelint.git","clone_url":"https://github.com/stylelint/stylelint.git","svn_url":"https://github.com/stylelint/stylelint","homepage":"http://stylelint.io/","size":3146,"stargazers_count":955,"watchers_count":955,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":39,"forks":57,"open_issues":39,"watchers":955,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/965"},"html":{"href":"https://github.com/stylelint/stylelint/pull/965"},"issue":{"href":"https://api.github.com/repos/stylelint/stylelint/issues/965"},"comments":{"href":"https://api.github.com/repos/stylelint/stylelint/issues/965/comments"},"review_comments":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/965/comments"},"review_comment":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/965/commits"},"statuses":{"href":"https://api.github.com/repos/stylelint/stylelint/statuses/40a1d1d84fd3c74903e567eff4817224fbcec52f"}}}}