code: function check(message, ranges, id) {
        /* Check the state at the message's position. */
        var index = ranges && ranges.length
        var length = -1
        var range
  
        while (--index > length) {
          range = ranges[index]
  
          /* istanbul ignore if - generated marker. */
          if (!range.position || !range.position.line || !range.position.column) {
            continue
          }
  
          if (
            range.position.line < message.line ||
            (range.position.line === message.line &&
              range.position.column < message.column)
          ) {
            return range.state === true
          }
        }
  
        /* The first marker ocurred after the first
         * message, so we check the initial state. */
        if (!id) {
          return initial || reset
        }
  
        return reset ? enable.indexOf(id) !== -1 : disable.indexOf(id) === -1
      }
docs: /* Check all `ranges` for `message`.