codeformatter
codeformatter copied to clipboard
CodeFormatter should remove redundant field initializers
public class CryptoStream
{
private int _InputBufferIndex = 0;
}
_InputBufferIndex will already have the value 0, the initializer being there doesn't change anything.
Ehh, no - if it's a hot perf path, that's one thing but I don't believe people who choose to be explict so the code reads "I didn't forget to initialize this, I made an explicit decision to initialize it to this value" should be scolded by a code-style tool.