C#

C#

By DeepSource

Missing space between = and subsequent operator CS-R1113

Anti-pattern Autofix

There's a space missing between the = operator and the subsequent operator. This may unnecessarily complicate your code and make it difficult to comprehend. For example, it is easier to comprehend i = -a rather than i =- a. Furthermore, the reader may confuse it with compound operators such as +=, -=, *=, etc. Therefore, it is recommended that you add a space between the = and the subsequent operator to improve readability.

Bad Practice

var i =- a;

Recommended

var i = -a; // Space inserted between `=` and `-`