function reportPath(node, name) {
			const customMessage = restrictedPathMessages[name];
			const messageId = customMessage
				? "customMessage"
				: "defaultMessage";

			context.report({
				node,
				messageId,
				data: {
					name,
					customMessage,
				},
			});
		}
Report a restricted path.
@param {node} node representing the restricted path reference
@param {string} name restricted path
@returns {void}
@private