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

Consider replacing the string with the existing named constant.

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