I want to detect for magic number.
What should I do? Can you help me?
Ensuring the rule
csharpsquid:S109 (Magic numbers should not be used) is enabled in your C# Quality Profile should do the trick! This rule is not in the built-in Sonar Way Quality Profile.