Checks if constant names follow the Rust naming convention.