SA1006: Preprocessor keywords should not be preceded by space
Cause
A C# preprocessor-type keyword is preceded by space.
Rule description
A violation of this rule occurs when the preprocessor-type keyword in a preprocessor directive is preceded by space. For example:
# if Debug
There should not be any whitespace between the opening hash mark and the preprocessor-type keyword:
#if Debug
How to fix violations
To fix a violation of this rule, ensure that there is no whitespace between the opening hash mark and the preprocessor-type keyword.
How to suppress violations
[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1006:PreprocessorKeywordsMustNotBePrecededBySpace", Justification = "Reviewed.")]
#pragma warning disable SA1006 // PreprocessorKeywordsMustNotBePrecededBySpace
#pragma warning restore SA1006 // PreprocessorKeywordsMustNotBePrecededBySpace