{"action":"opened","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/1211","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/1211/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/1211/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/1211/events","html_url":"https://github.com/stylelint/stylelint/issues/1211","id":153611473,"number":1211,"title":"Use walk* iterators where ever possible?","user":{"login":"jeddy3","id":808227,"avatar_url":"https://avatars.githubusercontent.com/u/808227?v=3","gravatar_id":"","url":"https://api.github.com/users/jeddy3","html_url":"https://github.com/jeddy3","followers_url":"https://api.github.com/users/jeddy3/followers","following_url":"https://api.github.com/users/jeddy3/following{/other_user}","gists_url":"https://api.github.com/users/jeddy3/gists{/gist_id}","starred_url":"https://api.github.com/users/jeddy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeddy3/subscriptions","organizations_url":"https://api.github.com/users/jeddy3/orgs","repos_url":"https://api.github.com/users/jeddy3/repos","events_url":"https://api.github.com/users/jeddy3/events{/privacy}","received_events_url":"https://api.github.com/users/jeddy3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/status:%20discussion","name":"status: discussion","color":"0023ee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-07T18:59:05Z","updated_at":"2016-05-07T18:59:05Z","closed_at":null,"body":"I think it'll help mitigate unforeseen problems with nested rules.\r\n\r\n`declaration-block-no-ignored-properties` makes use of [`decl.parent.nodes.forEach`](https://github.com/stylelint/stylelint/blob/master/src/rules/declaration-block-no-ignored-properties/index.js#L92).\r\n\r\nPerhaps it can be refactored to use `root.walkRules(rule => { rule.walkDecls(decl => {}) })`, similar to how `custom-property-no-outside-root` [does](https://github.com/stylelint/stylelint/blob/master/src/rules/custom-property-no-outside-root/index.js#L18-L30)\r\n\r\nIt's probably worth doing a quick audit/search of other instance of `forEach` or `each`, to see if there use is avoidable. \r\n"}}