{"action":"created","comment":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/comments/91957201","pull_request_review_id":12466067,"id":91957201,"diff_hunk":"@@ -58,11 +58,23 @@ const rule = function (expectation, options) {\n         return\n       }\n \n+      const functionNodeIndexes = []\n+\n       valueParser(decl.value).walk(node => {\n         const value = node.value,\n           type = node.type,\n           sourceIndex = node.sourceIndex\n \n+        // Find nodes that are inside functions\n+        if (type === \"function\") {\n+          node.nodes.forEach((node) => functionNodeIndexes.push(node.sourceIndex))\n+        }\n+\n+        // Return early if node is inside of a function\n+        if (functionNodeIndexes.indexOf(sourceIndex) > -1) {","path":"lib/rules/color-named/index.js","position":17,"original_position":17,"commit_id":"a25e093d763b4ebd9ec23b3ff92e078cf0b3976c","original_commit_id":"a25e093d763b4ebd9ec23b3ff92e078cf0b3976c","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":"Can we accomplish the same thing in a more standard way with [blurFunctionArguments](https://github.com/stylelint/stylelint/blob/master/lib/utils/blurFunctionArguments.js)? Have you checked out what is happening in other rules that also ignore function arguments?","created_at":"2016-12-12T14:33:13Z","updated_at":"2016-12-12T14:33:13Z","html_url":"https://github.com/stylelint/stylelint/pull/2182#discussion_r91957201","pull_request_url":"https://api.github.com/repos/stylelint/stylelint/pulls/2182","_links":{"self":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/comments/91957201"},"html":{"href":"https://github.com/stylelint/stylelint/pull/2182#discussion_r91957201"},"pull_request":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/2182"}}},"pull_request":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/2182","id":97311059,"html_url":"https://github.com/stylelint/stylelint/pull/2182","diff_url":"https://github.com/stylelint/stylelint/pull/2182.diff","patch_url":"https://github.com/stylelint/stylelint/pull/2182.patch","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/2182","number":2182,"state":"open","locked":false,"title":"Ignore maps and lists in color-named","user":{"login":"mmase","id":753529,"avatar_url":"https://avatars.githubusercontent.com/u/753529?v=3","gravatar_id":"","url":"https://api.github.com/users/mmase","html_url":"https://github.com/mmase","followers_url":"https://api.github.com/users/mmase/followers","following_url":"https://api.github.com/users/mmase/following{/other_user}","gists_url":"https://api.github.com/users/mmase/gists{/gist_id}","starred_url":"https://api.github.com/users/mmase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmase/subscriptions","organizations_url":"https://api.github.com/users/mmase/orgs","repos_url":"https://api.github.com/users/mmase/repos","events_url":"https://api.github.com/users/mmase/events{/privacy}","received_events_url":"https://api.github.com/users/mmase/received_events","type":"User","site_admin":false},"body":"> Which issue, if any, is this issue related to?\r\n\r\nhttps://github.com/stylelint/stylelint/issues/2009\r\n\r\n> Is there anything in the PR that needs further explanation?\r\n\r\nNo, it's self explanatory.\r\n\r\n","created_at":"2016-12-09T13:41:47Z","updated_at":"2016-12-12T14:33:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07c7d1e1a97270e786fca33c70aa4c445235cdb2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/stylelint/stylelint/pulls/2182/commits","review_comments_url":"https://api.github.com/repos/stylelint/stylelint/pulls/2182/comments","review_comment_url":"https://api.github.com/repos/stylelint/stylelint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/2182/comments","statuses_url":"https://api.github.com/repos/stylelint/stylelint/statuses/a25e093d763b4ebd9ec23b3ff92e078cf0b3976c","head":{"label":"mmase:color-named","ref":"color-named","sha":"a25e093d763b4ebd9ec23b3ff92e078cf0b3976c","user":{"login":"mmase","id":753529,"avatar_url":"https://avatars.githubusercontent.com/u/753529?v=3","gravatar_id":"","url":"https://api.github.com/users/mmase","html_url":"https://github.com/mmase","followers_url":"https://api.github.com/users/mmase/followers","following_url":"https://api.github.com/users/mmase/following{/other_user}","gists_url":"https://api.github.com/users/mmase/gists{/gist_id}","starred_url":"https://api.github.com/users/mmase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmase/subscriptions","organizations_url":"https://api.github.com/users/mmase/orgs","repos_url":"https://api.github.com/users/mmase/repos","events_url":"https://api.github.com/users/mmase/events{/privacy}","received_events_url":"https://api.github.com/users/mmase/received_events","type":"User","site_admin":false},"repo":{"id":75999994,"name":"stylelint","full_name":"mmase/stylelint","owner":{"login":"mmase","id":753529,"avatar_url":"https://avatars.githubusercontent.com/u/753529?v=3","gravatar_id":"","url":"https://api.github.com/users/mmase","html_url":"https://github.com/mmase","followers_url":"https://api.github.com/users/mmase/followers","following_url":"https://api.github.com/users/mmase/following{/other_user}","gists_url":"https://api.github.com/users/mmase/gists{/gist_id}","starred_url":"https://api.github.com/users/mmase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmase/subscriptions","organizations_url":"https://api.github.com/users/mmase/orgs","repos_url":"https://api.github.com/users/mmase/repos","events_url":"https://api.github.com/users/mmase/events{/privacy}","received_events_url":"https://api.github.com/users/mmase/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmase/stylelint","description":"A mighty, modern CSS linter","fork":true,"url":"https://api.github.com/repos/mmase/stylelint","forks_url":"https://api.github.com/repos/mmase/stylelint/forks","keys_url":"https://api.github.com/repos/mmase/stylelint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmase/stylelint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmase/stylelint/teams","hooks_url":"https://api.github.com/repos/mmase/stylelint/hooks","issue_events_url":"https://api.github.com/repos/mmase/stylelint/issues/events{/number}","events_url":"https://api.github.com/repos/mmase/stylelint/events","assignees_url":"https://api.github.com/repos/mmase/stylelint/assignees{/user}","branches_url":"https://api.github.com/repos/mmase/stylelint/branches{/branch}","tags_url":"https://api.github.com/repos/mmase/stylelint/tags","blobs_url":"https://api.github.com/repos/mmase/stylelint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmase/stylelint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmase/stylelint/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmase/stylelint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmase/stylelint/statuses/{sha}","languages_url":"https://api.github.com/repos/mmase/stylelint/languages","stargazers_url":"https://api.github.com/repos/mmase/stylelint/stargazers","contributors_url":"https://api.github.com/repos/mmase/stylelint/contributors","subscribers_url":"https://api.github.com/repos/mmase/stylelint/subscribers","subscription_url":"https://api.github.com/repos/mmase/stylelint/subscription","commits_url":"https://api.github.com/repos/mmase/stylelint/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmase/stylelint/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmase/stylelint/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmase/stylelint/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmase/stylelint/contents/{+path}","compare_url":"https://api.github.com/repos/mmase/stylelint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmase/stylelint/merges","archive_url":"https://api.github.com/repos/mmase/stylelint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmase/stylelint/downloads","issues_url":"https://api.github.com/repos/mmase/stylelint/issues{/number}","pulls_url":"https://api.github.com/repos/mmase/stylelint/pulls{/number}","milestones_url":"https://api.github.com/repos/mmase/stylelint/milestones{/number}","notifications_url":"https://api.github.com/repos/mmase/stylelint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmase/stylelint/labels{/name}","releases_url":"https://api.github.com/repos/mmase/stylelint/releases{/id}","deployments_url":"https://api.github.com/repos/mmase/stylelint/deployments","created_at":"2016-12-09T03:56:35Z","updated_at":"2016-12-09T03:56:37Z","pushed_at":"2016-12-12T14:15:13Z","git_url":"git://github.com/mmase/stylelint.git","ssh_url":"git@github.com:mmase/stylelint.git","clone_url":"https://github.com/mmase/stylelint.git","svn_url":"https://github.com/mmase/stylelint","homepage":"http://stylelint.io/","size":6195,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"d5b3ee4b71470e7644d9d353416c745d29d2fd5b","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-12-12T14:17:10Z","pushed_at":"2016-12-12T14:15:14Z","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":7439,"stargazers_count":2574,"watchers_count":2574,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":200,"mirror_url":null,"open_issues_count":42,"forks":200,"open_issues":42,"watchers":2574,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/2182"},"html":{"href":"https://github.com/stylelint/stylelint/pull/2182"},"issue":{"href":"https://api.github.com/repos/stylelint/stylelint/issues/2182"},"comments":{"href":"https://api.github.com/repos/stylelint/stylelint/issues/2182/comments"},"review_comments":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/2182/comments"},"review_comment":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stylelint/stylelint/pulls/2182/commits"},"statuses":{"href":"https://api.github.com/repos/stylelint/stylelint/statuses/a25e093d763b4ebd9ec23b3ff92e078cf0b3976c"}}}}
{"actor":{"display_login":"davidtheclark"}}