File tree Expand file tree Collapse file tree
StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ private static void HandleUsingDeclaration(SyntaxNodeAnalysisContext context)
6363
6464 private static void CheckUsingDeclaration ( SyntaxNodeAnalysisContext context , UsingDirectiveSyntax usingDirective )
6565 {
66- // Usings outside of a namepsace are always qualified.
66+ // Usings outside of a namespace are always qualified.
6767 if ( usingDirective . Parent is NamespaceDeclarationSyntax && usingDirective . StaticKeyword . IsKind ( SyntaxKind . None ) )
6868 {
6969 string usingString = usingDirective . Name . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ A using directive is not qualified.
2626For example, the following code would produce a violation of this rule:
2727
2828``` csharp
29- namepsace System .Threading
29+ namespace System .Threading
3030{
3131 using IO ;
3232 using Tasks ;
@@ -36,7 +36,7 @@ namepsace System.Threading
3636The following code would not produce any violations:
3737
3838``` csharp
39- namepsace System .Threading
39+ namespace System .Threading
4040{
4141 using System .IO ;
4242 using System .Threading .Tasks ;
@@ -45,12 +45,12 @@ namepsace System.Threading
4545
4646## How to fix violations
4747
48- To fix a violation of this rule, use the full qualified namepsace name.
48+ To fix a violation of this rule, use the full qualified namespace name.
4949
5050## How to suppress violations
5151
5252``` csharp
53- namepsace N1 .N2
53+ namespace N1 .N2
5454{
5555#pragma warning disable SA1135 // Using directives must be qualified
5656 using N3 ;
You can’t perform that action at this time.
0 commit comments