CERT.LITERAL.STR.CONST

Use of string literal constant, use meaningful symbolic constants to represent literal values.

Checker highlights instances of string constants excluding const/static declarations.

Vulnerability and risk

Use of literal constants can reduce the readability and maintainability of the source code

Prevention

Use named constants to clearly define the meaning of constants