function reportIfConstant(node) {
			if (
				node.test &&
				isConstant(sourceCode.getScope(node), node.test, true)
			) {
				context.report({ node: node.test, messageId: "unexpected" });
			}
		}
Reports when the given node contains a constant condition.
@param {ASTNode} node The AST node to check.
@returns {void}
@private