nohardcodeemail

Hard Coded Email Addresses are not allowed

The rule “nohardcodeemail” gives a warning when it finds what appears to be a hard coded email address within a uncommented literal. It looks for any occurrence of “x@x” where x is any string.

The Risk:
Email addresses change over time, and the proper email address should be retrieved from some database or configuration file source rather than hardcoding it in a program.

How to solve this:
Get the email address out of the database, or fool the system by stringing it together x + @ + x.

How to suppress these warnings:
See how to solve above.