Check for preventing null pointers.
Added rule for percentage values.

This rule simply checks that the absolute value is between
0 and 100. For only positive values, you can add a double
positive or integer positive rule.