@@ -156,7 +156,8 @@ function validate(exposed, file) {
156156 * is especially useful because they might be
157157 * non-markdown files. Here we check if they exist. */
158158 if ((real === undefined || real === null) && !hash) {
159− real = references[reference] = exists(reference);
159+ real = exists(reference);
160+ references[reference] = real;
160161 }
161162
162163 if (!real) {
@@ -302,7 +303,8 @@ function gatherReferences(file, tree, project) {
302303function warnAll(file, nodes, reason) {
303304 nodes.forEach(function (node) {
304305 var message = file.message(reason, node);
305− message.source = message.ruleId = 'remark-validate-links';
306+ message.source = 'remark-validate-links';
307+ message.ruleId = 'remark-validate-links';
306308 });
307309}
308310