This rule finds numbers that are used where a named constant already exists instead.

Consider replacing the number with the existing named constant.

  • Robert C. Martin, Clean Code - A handbook of agile software craftsmanship, p. 295. Prentice Hall, 2008.