index.js
function warnAll(file, nodes, reason, ruleId) {
  nodes.forEach(one)

  function one(node) {
    file.message(reason, node, [sourceId, ruleId].join(':'))
  }
}
function warnAll(file, nodes, reason, ruleId) {
  nodes.forEach(one)

  function one(node) {
    file.message(reason, node, [sourceId, ruleId].join(':'))
  }
}
Utility to warn `reason` for each node in `nodes` on `file`.