Inspectopedia
 
2024.3

Magic character

Warning
New
Last modified: 03 December 2024

Reports character literals that are used without constant declaration. These characters might result in bad code readability. Also, there might be errors if a character is changed only in one location but not everywhere in code.

Example:

char c = 'c';