function shouldReport(effectiveParent, name) {
			return (
				(!onlyDeclarations ||
					DECLARATION_TYPES.has(effectiveParent.type)) &&
				!ALLOWED_PARENT_TYPES.has(effectiveParent.type) &&
				isInvalid(name)
			);
		}
Verifies if we should report an error or not based on the effective
parent node and the identifier name.
@param {ASTNode} effectiveParent The effective parent node of the node to be reported
@param {string} name The identifier name of the identifier node
@returns {boolean} whether an error should be reported or not