-
Notifications
You must be signed in to change notification settings - Fork 22
SA1006
ptittof57 edited this page Aug 15, 2015
·
5 revisions
<title>SA1006: PreprocessorKeywordsMustNotBePrecededBySpace</title>
<script src="script/helpstudio.js" type="text/javascript"></script>
<script src="script/StandardText.js" type="text/jscript"></script>
<script type="text/jscript">WritePageTop(document.title);</script>
TypeName |
PreprocessorKeywordsMustNotBePrecededBySpace |
CheckId |
SA1006 |
Category |
Spacing Rules |
A C# preprocessor-type keyword is preceded by space.
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
To fix a violation of this rule, ensure that there is no whitespace between the opening hash mark and the preprocessor-type keyword.
[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1006:PreprocessorKeywordsMustNotBePrecededBySpace", Justification = "Reviewed.")]
- - SA0102 - Clean Install
- - Download
- - Documentation Rules - Layout Rules - Maintainability Rules - Naming Rules - Ordering Rules - Readability Rules - Spacing Rules - Suppressions
- - Adding a custom StyleCop settings page - Adding custom rule settings - Authoring a custom styleCop rule - Authoring rules metadata - Custom CSharp Language Service - Custom MSBuild Integration - Hosting StyleCop in a Custom Environment - Installing a Custom Rule - Integrating StyleCop Into Build Environments - Integrating StyleCop into MSBuild - Writing Custom Rules for StyleCop