├── .gitattributes
├── .gitignore
├── Build
├── AfterBuild.ps1
├── BeforeBuild.ps1
├── BuildFinish.ps1
├── Extensions
│ └── vsix.ps1
├── Install.ps1
├── StyleCop.nuspec
└── Tests.ps1
├── ChangeLog.md
├── Docs
├── CSharp Language Specification
│ ├── CSharp Language Specification 3.0.docx
│ ├── CSharp Language Specification 4.0.docx
│ └── CSharp Language Specification 5.0.docx
├── Rules
│ ├── BuildDocs.proj
│ ├── Contents.hhc
│ ├── Documentation Rules.html
│ ├── Images
│ │ ├── CompanyInformationSettings.JPG
│ │ └── HungarianSettings.JPG
│ ├── Index.hhk
│ ├── Layout Rules.html
│ ├── Maintainability Rules.html
│ ├── Naming Rules.html
│ ├── Ordering Rules.html
│ ├── Readability Rules.html
│ ├── SA1000.html
│ ├── SA1001.html
│ ├── SA1002.html
│ ├── SA1003.html
│ ├── SA1004.html
│ ├── SA1005.html
│ ├── SA1006.html
│ ├── SA1007.html
│ ├── SA1008.html
│ ├── SA1009.html
│ ├── SA1010.html
│ ├── SA1011.html
│ ├── SA1012.html
│ ├── SA1013.html
│ ├── SA1014.html
│ ├── SA1015.html
│ ├── SA1016.html
│ ├── SA1017.html
│ ├── SA1018.html
│ ├── SA1019.html
│ ├── SA1020.html
│ ├── SA1021.html
│ ├── SA1022.html
│ ├── SA1023.html
│ ├── SA1024.html
│ ├── SA1025.html
│ ├── SA1026.html
│ ├── SA1027.html
│ ├── SA1100.html
│ ├── SA1101.html
│ ├── SA1102.html
│ ├── SA1103.html
│ ├── SA1104.html
│ ├── SA1105.html
│ ├── SA1106.html
│ ├── SA1107.html
│ ├── SA1108.html
│ ├── SA1109.html
│ ├── SA1110.html
│ ├── SA1111.html
│ ├── SA1112.html
│ ├── SA1113.html
│ ├── SA1114.html
│ ├── SA1115.html
│ ├── SA1116.html
│ ├── SA1117.html
│ ├── SA1118.html
│ ├── SA1119.html
│ ├── SA1120.html
│ ├── SA1121.html
│ ├── SA1122.html
│ ├── SA1123.html
│ ├── SA1124.html
│ ├── SA1125.html
│ ├── SA1126.html
│ ├── SA1200.html
│ ├── SA1201.html
│ ├── SA1202.html
│ ├── SA1203.html
│ ├── SA1204.html
│ ├── SA1205.html
│ ├── SA1206.html
│ ├── SA1207.html
│ ├── SA1208.html
│ ├── SA1209.html
│ ├── SA1210.html
│ ├── SA1211.html
│ ├── SA1212.html
│ ├── SA1213.html
│ ├── SA1214.html
│ ├── SA1215.html
│ ├── SA1300.html
│ ├── SA1301.html
│ ├── SA1302.html
│ ├── SA1303.html
│ ├── SA1304.html
│ ├── SA1305.html
│ ├── SA1306.html
│ ├── SA1307.html
│ ├── SA1308.html
│ ├── SA1309.html
│ ├── SA1310.html
│ ├── SA1311.html
│ ├── SA1400.html
│ ├── SA1401.html
│ ├── SA1402.html
│ ├── SA1403.html
│ ├── SA1404.html
│ ├── SA1405.html
│ ├── SA1406.html
│ ├── SA1407.html
│ ├── SA1408.html
│ ├── SA1409.html
│ ├── SA1410.html
│ ├── SA1411.html
│ ├── SA1500.html
│ ├── SA1501.html
│ ├── SA1502.html
│ ├── SA1503.html
│ ├── SA1504.html
│ ├── SA1505.html
│ ├── SA1506.html
│ ├── SA1507.html
│ ├── SA1508.html
│ ├── SA1509.html
│ ├── SA1510.html
│ ├── SA1511.html
│ ├── SA1512.html
│ ├── SA1513.html
│ ├── SA1514.html
│ ├── SA1515.html
│ ├── SA1516.html
│ ├── SA1517.html
│ ├── SA1518.html
│ ├── SA1600.html
│ ├── SA1601.html
│ ├── SA1602.html
│ ├── SA1603.html
│ ├── SA1604.html
│ ├── SA1605.html
│ ├── SA1606.html
│ ├── SA1607.html
│ ├── SA1608.html
│ ├── SA1609.html
│ ├── SA1610.html
│ ├── SA1611.html
│ ├── SA1612.html
│ ├── SA1613.html
│ ├── SA1614.html
│ ├── SA1615.html
│ ├── SA1616.html
│ ├── SA1617.html
│ ├── SA1618.html
│ ├── SA1619.html
│ ├── SA1620.html
│ ├── SA1621.html
│ ├── SA1622.html
│ ├── SA1623.html
│ ├── SA1624.html
│ ├── SA1625.html
│ ├── SA1626.html
│ ├── SA1627.html
│ ├── SA1628.html
│ ├── SA1629.html
│ ├── SA1630.html
│ ├── SA1631.html
│ ├── SA1632.html
│ ├── SA1633.html
│ ├── SA1634.html
│ ├── SA1635.html
│ ├── SA1636.html
│ ├── SA1637.html
│ ├── SA1638.html
│ ├── SA1639.html
│ ├── SA1640.html
│ ├── SA1641.html
│ ├── SA1642.html
│ ├── SA1643.html
│ ├── SA1644.html
│ ├── SA1645.html
│ ├── SA1646.html
│ ├── SA1647.html
│ ├── SA1648.html
│ ├── SA1649.html
│ ├── SA1650.html
│ ├── Spacing Rules.html
│ ├── StyleCop Rules.html
│ ├── Suppressions.html
│ ├── script
│ │ ├── StandardText.js
│ │ └── helpstudio.js
│ ├── styles
│ │ └── Presentation.css
│ └── stylesheets
│ │ └── helpstudio.css
├── Sdk
│ ├── BuildDocs.proj
│ ├── ManualDocs
│ │ ├── _Adding Custom Rule Settings.htm
│ │ ├── _Adding a Custom StyleCop Settings Page.htm
│ │ ├── _Authoring Rules Metadata.htm
│ │ ├── _Authoring a Custom StyleCop Rule.htm
│ │ ├── _Custom CSharp Language Service.htm
│ │ ├── _Custom MSBuild Integration.htm
│ │ ├── _Hosting StyleCop in a Custom Environment.htm
│ │ ├── _Installing a Custom Rule.htm
│ │ ├── _Integrating StyleCop Into Build Environments.htm
│ │ ├── _Integrating StyleCop into MSBuild.htm
│ │ ├── _StyleCopSDK.htm
│ │ └── _Writing Custom Rules for StyleCop.htm
│ ├── ManualStyles
│ │ └── Presentation.css
│ ├── StyleCopSDK.hhp
│ ├── StyleCopSDK.shfbproj
│ ├── StyleCopSDK.shfbproj_HeiserC
│ └── icons
│ │ ├── CFW.gif
│ │ ├── Caution.gif
│ │ ├── LastChild.gif
│ │ ├── NotLastChild.gif
│ │ ├── alert_caution.gif
│ │ ├── alert_note.gif
│ │ ├── alert_security.gif
│ │ ├── collapse_all.gif
│ │ ├── copycode.gif
│ │ ├── expand_all.gif
│ │ ├── privclass.gif
│ │ ├── privdelegate.gif
│ │ ├── privenum.gif
│ │ ├── privevent.gif
│ │ ├── privfield.gif
│ │ ├── privinterface.gif
│ │ ├── privmethod.gif
│ │ ├── privproperty.gif
│ │ ├── privstructure.gif
│ │ ├── protclass.gif
│ │ ├── protdelegate.gif
│ │ ├── protenum.gif
│ │ ├── protevent.gif
│ │ ├── protfield.gif
│ │ ├── protfield.png
│ │ ├── protinterface.gif
│ │ ├── protmethod.gif
│ │ ├── protoperator.gif
│ │ ├── protproperty.gif
│ │ ├── protstructure.gif
│ │ ├── pubclass.gif
│ │ ├── pubdelegate.gif
│ │ ├── pubenum.gif
│ │ ├── pubevent.gif
│ │ ├── pubfield.gif
│ │ ├── pubinterface.gif
│ │ ├── pubmethod.gif
│ │ ├── puboperator.gif
│ │ ├── pubproperty.gif
│ │ ├── pubstructure.gif
│ │ ├── security.gif
│ │ └── static.gif
├── StyleCop - Version 4.7.49.chm
├── StyleCop MSBuild.docx
├── StyleCop User Guide.docx
└── StyleCopSDK.htm
├── License.Rtf
├── License.html
├── Project
├── CustomDictionary.en-GB.xml
├── CustomDictionary.en-US.xml
├── CustomDictionary.xml
├── Settings.StyleCop
├── Src
│ ├── Analyzers
│ │ ├── CSharpAnalyzers.csproj
│ │ ├── CachedCodeStrings.cs
│ │ ├── CodeStrings.Designer.cs
│ │ ├── CodeStrings.de-DE.resx
│ │ ├── CodeStrings.en-GB.resx
│ │ ├── CodeStrings.fr-FR.resx
│ │ ├── CodeStrings.pl-PL.resx
│ │ ├── CodeStrings.pt-BR.resx
│ │ ├── CodeStrings.resx
│ │ ├── CodeStrings.ru-RU.resx
│ │ ├── CommentVerifier.cs
│ │ ├── CompanyInformation.Designer.cs
│ │ ├── CompanyInformation.cs
│ │ ├── CompanyInformation.resx
│ │ ├── DocumentationRules.cs
│ │ ├── DocumentationRules.xml
│ │ ├── InvalidCommentType.cs
│ │ ├── LayoutRules.cs
│ │ ├── LayoutRules.xml
│ │ ├── MaintainabilityRules.cs
│ │ ├── MaintainabilityRules.xml
│ │ ├── NamingRules.cs
│ │ ├── NamingRules.xml
│ │ ├── OrderingRules.cs
│ │ ├── OrderingRules.xml
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── ReadabilityRules.ClassMembers.cs
│ │ ├── ReadabilityRules.Comments.cs
│ │ ├── ReadabilityRules.MethodParameters.cs
│ │ ├── ReadabilityRules.QueryExpressions.cs
│ │ ├── ReadabilityRules.Statements.cs
│ │ ├── ReadabilityRules.cs
│ │ ├── ReadabilityRules.xml
│ │ ├── Rules.cs
│ │ ├── SpacingRules.cs
│ │ ├── SpacingRules.xml
│ │ ├── Strings.Designer.cs
│ │ ├── Strings.resx
│ │ ├── StyleCop.Cache
│ │ ├── Utils.cs
│ │ ├── ValidPrefixes.cs
│ │ └── ValidPrefixes.resx
│ ├── AssemblyVersion.cs
│ ├── AssemblyVersion.targets
│ ├── AssemblyVersion.txt
│ ├── AssemblyVersion.wxi
│ ├── Constants.cs
│ ├── FxCopRules.ruleset
│ ├── InternalAnalyzers
│ │ ├── InternalAnalyzers.csproj
│ │ ├── ParamCheck.cs
│ │ ├── ParamCheck.xml
│ │ ├── ParamTokens.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Rules.cs
│ │ ├── Settings.StyleCop
│ │ └── StyleCop.Cache
│ ├── Parser
│ │ ├── AccessModifierType.cs
│ │ ├── AccessorType.cs
│ │ ├── Argument.cs
│ │ ├── CSharpParser.csproj
│ │ ├── ClassBase.cs
│ │ ├── CodeAnalysisDictionary.xml
│ │ ├── CodeLexer.MarkerData.cs
│ │ ├── CodeLexer.cs
│ │ ├── CodeParser.Elements.cs
│ │ ├── CodeParser.Expressions.cs
│ │ ├── CodeParser.Preprocessor.cs
│ │ ├── CodeParser.Statements.cs
│ │ ├── CodeParser.Symbols.cs
│ │ ├── CodeParser.cs
│ │ ├── CodePartType.cs
│ │ ├── CodeUnit.cs
│ │ ├── CodeUnitCollection{T}.cs
│ │ ├── CodeWalker{T}.cs
│ │ ├── CsDocument.cs
│ │ ├── CsElement.cs
│ │ ├── CsParser.cs
│ │ ├── CsParser.xml
│ │ ├── CsToken.cs
│ │ ├── CsTokenClass.cs
│ │ ├── CsTokenList.cs
│ │ ├── CsTokenType.cs
│ │ ├── Declaration.cs
│ │ ├── ElementType.cs
│ │ ├── Elements
│ │ │ ├── Accessor.cs
│ │ │ ├── AssemblyOrModuleAttribute.cs
│ │ │ ├── Class.cs
│ │ │ ├── Constructor.cs
│ │ │ ├── Delegate.cs
│ │ │ ├── Destructor.cs
│ │ │ ├── DocumentRoot.cs
│ │ │ ├── EmptyElement.cs
│ │ │ ├── Enum.cs
│ │ │ ├── EnumItem.cs
│ │ │ ├── Event.cs
│ │ │ ├── ExternAliasDirective.cs
│ │ │ ├── Field.cs
│ │ │ ├── Indexer.cs
│ │ │ ├── Interface.cs
│ │ │ ├── Method.cs
│ │ │ ├── Namespace.cs
│ │ │ ├── Property.cs
│ │ │ ├── Struct.cs
│ │ │ └── UsingDirective.cs
│ │ ├── Expression.cs
│ │ ├── ExpressionType.cs
│ │ ├── Expressions
│ │ │ ├── AnonymousMethodExpression.cs
│ │ │ ├── ArithmeticExpression.cs
│ │ │ ├── ArrayAccessExpression.cs
│ │ │ ├── ArrayInitializerExpression.cs
│ │ │ ├── AsExpression.cs
│ │ │ ├── AssignmentExpression.cs
│ │ │ ├── AttributeExpression.cs
│ │ │ ├── AwaitExpression.cs
│ │ │ ├── BodiedExpression.cs
│ │ │ ├── CastExpression.cs
│ │ │ ├── CheckedExpression.cs
│ │ │ ├── CollectionInitializerExpression.cs
│ │ │ ├── ConditionalExpression.cs
│ │ │ ├── ConditionalLogicalExpression.cs
│ │ │ ├── DecrementExpression.cs
│ │ │ ├── DefaultValueExpression.cs
│ │ │ ├── DictionaryInitializerExpression.cs
│ │ │ ├── DictionaryItemInitializationExpression.cs
│ │ │ ├── EventDeclaratorExpression.cs
│ │ │ ├── ExpressionWithParameters.cs
│ │ │ ├── IncrementExpression.cs
│ │ │ ├── IsExpression.cs
│ │ │ ├── LambdaExpression.cs
│ │ │ ├── LiteralExpression.cs
│ │ │ ├── LogicalExpression.cs
│ │ │ ├── MemberAccessExpression.cs
│ │ │ ├── MethodInvocationExpression.cs
│ │ │ ├── NameofExpression.cs
│ │ │ ├── NewArrayExpression.cs
│ │ │ ├── NewExpression.cs
│ │ │ ├── NullCoalescingExpression.cs
│ │ │ ├── NullConditionExpression.cs
│ │ │ ├── ObjectInitializerExpression.cs
│ │ │ ├── ParenthesizedExpression.cs
│ │ │ ├── QueryExpression.cs
│ │ │ ├── RelationalExpression.cs
│ │ │ ├── SizeofExpression.cs
│ │ │ ├── StackallocExpression.cs
│ │ │ ├── TypeofExpression.cs
│ │ │ ├── UnaryExpression.cs
│ │ │ ├── UncheckedExpression.cs
│ │ │ ├── UnsafeAccessExpression.cs
│ │ │ ├── VariableDeclarationExpression.cs
│ │ │ └── VariableDeclaratorExpression.cs
│ │ ├── FileHeader.cs
│ │ ├── ICodePart.cs
│ │ ├── ICodePartExtensions.cs
│ │ ├── ICodeUnit.cs
│ │ ├── IParameterContainer.cs
│ │ ├── ITokenContainer.cs
│ │ ├── ITypeConstraintContainer.cs
│ │ ├── IWriteableCodeUnit.cs
│ │ ├── Parameter.cs
│ │ ├── ParameterModifiers.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── QueryClause.cs
│ │ ├── QueryClauseType.cs
│ │ ├── QueryClauses
│ │ │ ├── QueryClauseWithExpression.cs
│ │ │ ├── QueryContinuationClause.cs
│ │ │ ├── QueryFromClause.cs
│ │ │ ├── QueryGroupClause.cs
│ │ │ ├── QueryJoinClause.cs
│ │ │ ├── QueryLetClause.cs
│ │ │ ├── QueryOrderByClause.cs
│ │ │ ├── QueryOrderByDirection.cs
│ │ │ ├── QueryOrderByOrdering.cs
│ │ │ ├── QuerySelectClause.cs
│ │ │ └── QueryWhereClause.cs
│ │ ├── Reference{T}.cs
│ │ ├── Rules.cs
│ │ ├── Statement.cs
│ │ ├── StatementType.cs
│ │ ├── Statements
│ │ │ ├── AwaitStatement.cs
│ │ │ ├── BlockStatement.cs
│ │ │ ├── BreakStatement.cs
│ │ │ ├── CatchStatement.cs
│ │ │ ├── CheckedStatement.cs
│ │ │ ├── ConstructorInitializerStatement.cs
│ │ │ ├── ContinueStatement.cs
│ │ │ ├── DoWhileStatement.cs
│ │ │ ├── ElseStatement.cs
│ │ │ ├── EmptyStatement.cs
│ │ │ ├── ExpressionStatement.cs
│ │ │ ├── FinallyStatement.cs
│ │ │ ├── FixedStatement.cs
│ │ │ ├── ForStatement.cs
│ │ │ ├── ForeachStatement.cs
│ │ │ ├── GotoStatement.cs
│ │ │ ├── IfStatement.cs
│ │ │ ├── LabelStatement.cs
│ │ │ ├── LockStatement.cs
│ │ │ ├── ReturnStatement.cs
│ │ │ ├── SwitchCaseStatement.cs
│ │ │ ├── SwitchDefaultStatement.cs
│ │ │ ├── SwitchStatement.cs
│ │ │ ├── ThrowStatement.cs
│ │ │ ├── TryStatement.cs
│ │ │ ├── UncheckedStatement.cs
│ │ │ ├── UnsafeStatement.cs
│ │ │ ├── UsingStatement.cs
│ │ │ ├── VariableDeclarationStatement.cs
│ │ │ ├── WhenStatement.cs
│ │ │ ├── WhileStatement.cs
│ │ │ └── YieldStatement.cs
│ │ ├── Strings.Designer.cs
│ │ ├── Strings.resx
│ │ ├── StyleCop.Cache
│ │ ├── Symbol.cs
│ │ ├── SymbolManager.cs
│ │ ├── SymbolType.cs
│ │ ├── Tokens
│ │ │ ├── Attribute.cs
│ │ │ ├── Bracket.cs
│ │ │ ├── ConditionalCompilationDirective.cs
│ │ │ ├── ConditionalCompilationDirectiveType.cs
│ │ │ ├── ConstructorConstraint.cs
│ │ │ ├── GenericType.cs
│ │ │ ├── GenericTypeParameter.cs
│ │ │ ├── Number.cs
│ │ │ ├── OperatorCategory.cs
│ │ │ ├── OperatorSymbol.cs
│ │ │ ├── OperatorType.cs
│ │ │ ├── Preprocessor.cs
│ │ │ ├── Region.cs
│ │ │ ├── TypeToken.cs
│ │ │ ├── Whitespace.cs
│ │ │ └── XmlHeader.cs
│ │ ├── TypeNames.Designer.cs
│ │ ├── TypeNames.resx
│ │ ├── TypeParameterConstraintClause.cs
│ │ ├── Variable.cs
│ │ ├── VariableCollection.cs
│ │ └── VariableModifiers.cs
│ ├── SettingsEditor
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ ├── Settings.settings
│ │ │ └── app.manifest
│ │ ├── Settings.StyleCop
│ │ ├── SettingsEditor.csproj
│ │ ├── StyleCop.Cache
│ │ └── app.config
│ ├── StyleCop
│ │ ├── AddSettingsPagesEventArgs.cs
│ │ ├── AlertDialog.cs
│ │ ├── AnalyzersOptions.cs
│ │ ├── AnalyzersOptions.resx
│ │ ├── AutoUpdater.cs
│ │ ├── CacheOptions.cs
│ │ ├── CacheOptions.resx
│ │ ├── CodeDocument.cs
│ │ ├── CodeFile.cs
│ │ ├── CodeLocation.cs
│ │ ├── CodePoint.cs
│ │ ├── CodeProject.cs
│ │ ├── CodeReader.cs
│ │ ├── Collections
│ │ │ ├── INodeList{T}.cs
│ │ │ ├── ItemList.cs
│ │ │ ├── LinkedItemList.cs
│ │ │ ├── LinkedItemListEnumerators{T}.cs
│ │ │ ├── MasterList{T}.cs
│ │ │ ├── NodeIndex.cs
│ │ │ └── Node{T}.cs
│ │ ├── Configuration.cs
│ │ ├── CoreParser.cs
│ │ ├── CoreParser.xml
│ │ ├── Countdown.cs
│ │ ├── CustomDictionary.en-GB.xml
│ │ ├── CustomDictionary.en-US.xml
│ │ ├── CustomDictionary.xml
│ │ ├── Diagnostics
│ │ │ ├── SensitiveDataAttribute.cs
│ │ │ ├── StyleCopSwitch.cs
│ │ │ ├── StyleCopTrace.cs
│ │ │ ├── StyleCopTraceFormatter.cs
│ │ │ └── TraceTypes.cs
│ │ ├── DocumentAnalysisStatus.cs
│ │ ├── EnumerableAdapter.cs
│ │ ├── Extensions
│ │ │ ├── ParameterInfoExtensions.cs
│ │ │ ├── StringExtensions.cs
│ │ │ └── TypeExtensions.cs
│ │ ├── FileBasedEnvironment.cs
│ │ ├── GlobalSettingsFileOptions.cs
│ │ ├── GlobalSettingsFileOptions.resx
│ │ ├── GlobalSuppressions.cs
│ │ ├── ICodeElement.cs
│ │ ├── Images
│ │ │ ├── AnalyzerNode.bmp
│ │ │ ├── ParserNode.bmp
│ │ │ ├── RuleGroupNode.bmp
│ │ │ └── RuleNode.bmp
│ │ ├── LegacyEnumeratorAdapter.cs
│ │ ├── NativeMethods.cs
│ │ ├── ObjectBasedEnvironment.cs
│ │ ├── OutputEventArgs.cs
│ │ ├── Param.cs
│ │ ├── ProjectStatus.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RegistryUtils.Permissions.cs
│ │ ├── RegistryUtils.WindowLocation.cs
│ │ ├── RegistryUtils.cs
│ │ ├── ResultsCache.cs
│ │ ├── Rule.cs
│ │ ├── Rules.cs
│ │ ├── Settings.StyleCop
│ │ ├── Settings
│ │ │ ├── AddInPropertyCollection.cs
│ │ │ ├── BooleanProperty.cs
│ │ │ ├── CollectionProperty.cs
│ │ │ ├── CollectionPropertyDescriptor.cs
│ │ │ ├── DefaultSettings.xml
│ │ │ ├── IPropertyContainer.cs
│ │ │ ├── IPropertyControlHost.cs
│ │ │ ├── IPropertyControlPage.cs
│ │ │ ├── IntProperty.cs
│ │ │ ├── PropertyCollection.cs
│ │ │ ├── PropertyControl.cs
│ │ │ ├── PropertyControl.resx
│ │ │ ├── PropertyControlSaveResult.cs
│ │ │ ├── PropertyDescriptor.cs
│ │ │ ├── PropertyDescriptorCollection.cs
│ │ │ ├── PropertyDescriptor{T}.cs
│ │ │ ├── PropertyDialog.Designer.cs
│ │ │ ├── PropertyDialog.cs
│ │ │ ├── PropertyDialog.resx
│ │ │ ├── PropertyType.cs
│ │ │ ├── PropertyValue.cs
│ │ │ ├── PropertyValue{T}.cs
│ │ │ ├── Settings.cs
│ │ │ ├── SettingsComparer.cs
│ │ │ ├── SettingsMerger.cs
│ │ │ ├── SourceFileListSettings.cs
│ │ │ ├── StringProperty.cs
│ │ │ ├── WritableSettings.cs
│ │ │ ├── v101Settings.cs
│ │ │ ├── v102Settings.cs
│ │ │ ├── v103Settings.cs
│ │ │ ├── v104Settings.cs
│ │ │ └── v105Settings.cs
│ │ ├── SourceAnalyzer.cs
│ │ ├── SourceAnalyzerAttribute.cs
│ │ ├── SourceCode.cs
│ │ ├── SourceParser.cs
│ │ ├── SourceParserAttribute.cs
│ │ ├── Spelling
│ │ │ ├── NamingService.cs
│ │ │ ├── NullIfNotFoundDictionary.cs
│ │ │ ├── SpellChecker.cs
│ │ │ ├── WordCollection.cs
│ │ │ ├── WordParser.cs
│ │ │ ├── WordParserOptions.cs
│ │ │ └── WordSpelling.cs
│ │ ├── SpellingTab.cs
│ │ ├── SpellingTab.resx
│ │ ├── Strings.Designer.cs
│ │ ├── Strings.resx
│ │ ├── StyleCop.Cache
│ │ ├── StyleCop.csproj
│ │ ├── StyleCop.csproj.user
│ │ ├── StyleCopAddIn.cs
│ │ ├── StyleCopAddIn.xml
│ │ ├── StyleCopAddInAttribute.cs
│ │ ├── StyleCopConsole.cs
│ │ ├── StyleCopCore.cs
│ │ ├── StyleCopEnvironment.cs
│ │ ├── StyleCopException.cs
│ │ ├── StyleCopLogLevel.cs
│ │ ├── StyleCopObjectConsole.cs
│ │ ├── StyleCopRunner.cs
│ │ ├── StyleCopTask.cs
│ │ ├── StyleCopThread.Data.cs
│ │ ├── StyleCopThread.cs
│ │ ├── StyleCopWebClient.cs
│ │ ├── SyntaxException.cs
│ │ ├── UnixNativeMethods.cs
│ │ ├── Utils.cs
│ │ ├── Violation.cs
│ │ ├── ViolationEventArgs.cs
│ │ ├── Visual-StyleCop.MSBuild.targets
│ │ ├── mssp7en.dll
│ │ └── mssp7en.lex
│ ├── VSIXProject
│ │ ├── License.Rtf
│ │ ├── Microsoft.VisualStudio.Shell.14.0.dll
│ │ ├── Microsoft.VisualStudio.Shell.Immutable.14.0.dll
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── StyleCop.Cache
│ │ ├── StyleCop.VSPackage.pkgdef
│ │ ├── StyleCop.ico
│ │ ├── StyleCopLogo.png
│ │ ├── VSIXProject.csproj
│ │ ├── VSIXProject.csproj.user
│ │ ├── packages.config
│ │ └── source.extension.vsixmanifest
│ └── VSPackage
│ │ ├── AnalysisThread.cs
│ │ ├── AnalysisType.cs
│ │ ├── BuildIntegrationOptions.Designer.cs
│ │ ├── BuildIntegrationOptions.cs
│ │ ├── BuildIntegrationOptions.resx
│ │ ├── InvisibleForm.cs
│ │ ├── NativeMethods.cs
│ │ ├── ProjectCollection.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ │ ├── Resources
│ │ ├── Images_32bit.bmp
│ │ └── StyleCop.ico
│ │ ├── Settings.StyleCop
│ │ ├── Strings.Designer.cs
│ │ ├── Strings.resx
│ │ ├── StyleCop.Cache
│ │ ├── StyleCopVSPackage.vsct
│ │ ├── VSIntegration
│ │ ├── AnalysisHelper.cs
│ │ ├── CommandIdList.cs
│ │ ├── CommandSet.cs
│ │ ├── EnvDTEExtensions.cs
│ │ ├── FileAnalysisHelper.cs
│ │ ├── GuidList.cs
│ │ ├── ITaskProvider.cs
│ │ ├── PackageCommandSet.cs
│ │ ├── ProjectUtilities.cs
│ │ ├── SolutionListener.cs
│ │ ├── StyleCopVSPackage.cs
│ │ ├── TaskProvider.cs
│ │ ├── UpdateSolutionListener.cs
│ │ └── ViolationTask.cs
│ │ ├── VSPackage.csproj
│ │ ├── VSPackage.csproj.user
│ │ ├── VSPackage.resx
│ │ ├── VSWindows.cs
│ │ ├── ViolationInfo.cs
│ │ └── app.config
├── StyleCop.sln
├── StyleCop.snk
├── StyleCop.vsmdi
├── Test
│ ├── CSharpAnalyzersTest
│ │ ├── AnalyzerTests.cs
│ │ ├── CSharpAnalyzersTest.csproj
│ │ ├── CSharpAnalyzersTest.csproj.user
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Settings.StyleCop
│ │ ├── StyleCop.Cache
│ │ ├── TestData
│ │ │ ├── AccessModifiers
│ │ │ │ ├── AccessModifiersMissing.cs
│ │ │ │ ├── AccessModifiersNonPrivateFields.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── BuiltInTypes
│ │ │ │ ├── InvalidBuiltInTypes.cs
│ │ │ │ ├── ShorthandForNullableTypes.cs
│ │ │ │ ├── TestDescription.xml
│ │ │ │ └── ValidBuiltInTypes.cs
│ │ │ ├── ClassMembers
│ │ │ │ ├── ClassMembersCodeWalker{T}.cs
│ │ │ │ ├── ClassMembersCollectionInitializers.cs
│ │ │ │ ├── ClassMembersDerivedWithBase.cs
│ │ │ │ ├── ClassMembersDoNotPrefixCallsWithBaseUnlessLocalImplementationExists.cs
│ │ │ │ ├── ClassMembersLocalVariables.cs
│ │ │ │ ├── ClassMembersMaintainabilityRules.cs
│ │ │ │ ├── ClassMembersMethodArguments.cs
│ │ │ │ ├── ClassMembersNoViolations.cs
│ │ │ │ ├── ClassMembersPrefixLocalCallsWithThis.cs
│ │ │ │ ├── ClassMembersPrefixLocalCallsWithThis2.cs
│ │ │ │ ├── ClassMembersPrefixLocalCallsWithThisForBodied.cs
│ │ │ │ ├── NullPropogation.cs
│ │ │ │ ├── TestDescription.xml
│ │ │ │ └── ValidPrefix.cs
│ │ │ ├── Comments
│ │ │ │ ├── CommentsBeginWithSingleSpace.cs
│ │ │ │ ├── CommentsMustContainText.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── CurlyBrackets
│ │ │ │ ├── CurlyBracketsArrayInitialization.cs
│ │ │ │ ├── CurlyBracketsBlocks.cs
│ │ │ │ ├── CurlyBracketsCheckeds.cs
│ │ │ │ ├── CurlyBracketsClasses.cs
│ │ │ │ ├── CurlyBracketsConstructorInitializers.cs
│ │ │ │ ├── CurlyBracketsConstructors.cs
│ │ │ │ ├── CurlyBracketsDelegates.cs
│ │ │ │ ├── CurlyBracketsDestructors.cs
│ │ │ │ ├── CurlyBracketsDoWhiles.cs
│ │ │ │ ├── CurlyBracketsEnums.cs
│ │ │ │ ├── CurlyBracketsEvents.cs
│ │ │ │ ├── CurlyBracketsFixeds.cs
│ │ │ │ ├── CurlyBracketsForeaches.cs
│ │ │ │ ├── CurlyBracketsFors.cs
│ │ │ │ ├── CurlyBracketsIfs.cs
│ │ │ │ ├── CurlyBracketsIndexers.cs
│ │ │ │ ├── CurlyBracketsInterfaces.cs
│ │ │ │ ├── CurlyBracketsLambdaExpressions.cs
│ │ │ │ ├── CurlyBracketsLocks.cs
│ │ │ │ ├── CurlyBracketsMethods.cs
│ │ │ │ ├── CurlyBracketsNamespaces.cs
│ │ │ │ ├── CurlyBracketsObjectInitializers.cs
│ │ │ │ ├── CurlyBracketsProperties.cs
│ │ │ │ ├── CurlyBracketsStructs.cs
│ │ │ │ ├── CurlyBracketsSwitches.cs
│ │ │ │ ├── CurlyBracketsTryCatchFinallys.cs
│ │ │ │ ├── CurlyBracketsUncheckeds.cs
│ │ │ │ ├── CurlyBracketsUnsafes.cs
│ │ │ │ ├── CurlyBracketsUsings.cs
│ │ │ │ ├── CurlyBracketsWhiles.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── DebugText
│ │ │ │ ├── DebugAssertMessages.cs
│ │ │ │ ├── SuppressMessageJustifications.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── DeclarationKeywordOrder
│ │ │ │ ├── DeclarationKeywordOrderClasses.cs
│ │ │ │ ├── DeclarationKeywordOrderConstructors.cs
│ │ │ │ ├── DeclarationKeywordOrderDelegates.cs
│ │ │ │ ├── DeclarationKeywordOrderEnums.cs
│ │ │ │ ├── DeclarationKeywordOrderEvents.cs
│ │ │ │ ├── DeclarationKeywordOrderIndexers.cs
│ │ │ │ ├── DeclarationKeywordOrderInterfaces.cs
│ │ │ │ ├── DeclarationKeywordOrderMethods.cs
│ │ │ │ ├── DeclarationKeywordOrderProperties.cs
│ │ │ │ ├── DeclarationKeywordOrderStructs.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── Documentation
│ │ │ │ ├── DocumentationClasses.cs
│ │ │ │ ├── DocumentationConstructorSummary.cs
│ │ │ │ ├── DocumentationConstructorSummaryDetailed.cs
│ │ │ │ ├── DocumentationConstructorSummaryForGenericType.cs
│ │ │ │ ├── DocumentationConstructorSummaryForGenericTypeViolations.cs
│ │ │ │ ├── DocumentationConstructors.cs
│ │ │ │ ├── DocumentationCopiedAndPasted.cs
│ │ │ │ ├── DocumentationDelegates.cs
│ │ │ │ ├── DocumentationDestructorSummary.cs
│ │ │ │ ├── DocumentationDestructors.cs
│ │ │ │ ├── DocumentationEnums.cs
│ │ │ │ ├── DocumentationEvents.cs
│ │ │ │ ├── DocumentationExternDllImports.cs
│ │ │ │ ├── DocumentationFields.cs
│ │ │ │ ├── DocumentationGenericTypeParameters.cs
│ │ │ │ ├── DocumentationHeaderBlankLines.cs
│ │ │ │ ├── DocumentationIgnorePrivates.cs
│ │ │ │ ├── DocumentationIgnores.cs
│ │ │ │ ├── DocumentationIncludeFields.cs
│ │ │ │ ├── DocumentationIndexers.cs
│ │ │ │ ├── DocumentationInheritdoc.cs
│ │ │ │ ├── DocumentationInterfaces.cs
│ │ │ │ ├── DocumentationMethods.cs
│ │ │ │ ├── DocumentationProperties.cs
│ │ │ │ ├── DocumentationRequireCapitalLetter.cs
│ │ │ │ ├── DocumentationRequirePeriod.cs
│ │ │ │ ├── DocumentationRequireProperFormatting.cs
│ │ │ │ ├── DocumentationRequireValueTags.cs
│ │ │ │ ├── DocumentationSlashes.cs
│ │ │ │ ├── DocumentationStructs.cs
│ │ │ │ ├── IncludedDocumentation.cs
│ │ │ │ ├── IncludedDocumentation.xml
│ │ │ │ ├── NestedPropertyAccessModifiersWithGetAndSetHeaders.cs
│ │ │ │ ├── NestedPropertyAccessModifiersWithGetHeaders.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── ElementOrder
│ │ │ │ ├── AccessorOrder.cs
│ │ │ │ ├── ElementOrderByAccess.cs
│ │ │ │ ├── ElementOrderClassElementOrder.cs
│ │ │ │ ├── ElementOrderConstField.cs
│ │ │ │ ├── ElementOrderEmptyFile.cs
│ │ │ │ ├── ElementOrderGeneratedCode.cs
│ │ │ │ ├── ElementOrderGlobalGeneratedCode.cs
│ │ │ │ ├── ElementOrderNamespaceElementOrder.cs
│ │ │ │ ├── ElementOrderPartialElementsMissingAccessModifier.cs
│ │ │ │ ├── ElementOrderRootElementOrder.cs
│ │ │ │ ├── ElementOrderStatics.cs
│ │ │ │ ├── ElementOrderStaticsByAccess.cs
│ │ │ │ ├── ElementOrderUsingDirectives.cs
│ │ │ │ ├── ElementOrderUsingDirectives2.cs
│ │ │ │ ├── ElementOrderUsingDirectives3.cs
│ │ │ │ ├── TestDescription.xml
│ │ │ │ └── UsingDirectiveOrdering.cs
│ │ │ ├── EmptyStrings
│ │ │ │ ├── EmptyStrings.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── FileContents
│ │ │ │ ├── FileContentsMultipleClasses.cs
│ │ │ │ ├── FileContentsMultipleClassesNoNamespace.cs
│ │ │ │ ├── FileContentsMultipleNamespaces.cs
│ │ │ │ ├── FileContentsPartialClasses.cs
│ │ │ │ ├── FileContentsPartialClassesDifferentTypes.cs
│ │ │ │ ├── FileContentsSingleClass.cs
│ │ │ │ ├── FileContentsSingleNamespace.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── FileHeaders
│ │ │ │ ├── FileHeadersAutoGenerated.cs
│ │ │ │ ├── FileHeadersAutoGenerated2.cs
│ │ │ │ ├── FileHeadersAutoGeneratedWithDefine.cs
│ │ │ │ ├── FileHeadersAutoGeneratedWithPragma1.cs
│ │ │ │ ├── FileHeadersAutoGeneratedWithPragma2.cs
│ │ │ │ ├── FileHeadersAutoGeneratedWithPragma3.cs
│ │ │ │ ├── FileHeadersEmptyCompany.cs
│ │ │ │ ├── FileHeadersEmptyFile.cs
│ │ │ │ ├── FileHeadersEmptyFilename.cs
│ │ │ │ ├── FileHeadersEmptySummary.cs
│ │ │ │ ├── FileHeadersExtendedHeader.cs
│ │ │ │ ├── FileHeadersExtraTags.cs
│ │ │ │ ├── FileHeadersInvalidFilename.cs
│ │ │ │ ├── FileHeadersInvalidXml.cs
│ │ │ │ ├── FileHeadersMissing.cs
│ │ │ │ ├── FileHeadersMissingCompany.cs
│ │ │ │ ├── FileHeadersMissingCopyright.cs
│ │ │ │ ├── FileHeadersMissingCopyrightTag.cs
│ │ │ │ ├── FileHeadersMissingFilename.cs
│ │ │ │ ├── FileHeadersMissingSummary.cs
│ │ │ │ ├── FileHeadersMissingWithLeadingSpace.cs
│ │ │ │ ├── FileHeadersNormalHeader.cs
│ │ │ │ ├── FileHeadersNormalHeaderExtraSpaces.cs
│ │ │ │ ├── FileHeadersNormalHeaderLeadingSpaces.cs
│ │ │ │ ├── FileHeadersNormalHeaderNoSpaces.cs
│ │ │ │ ├── FileHeadersNormalHeaderTabs.cs
│ │ │ │ ├── FileHeadersSingleLineHeader.cs
│ │ │ │ ├── FileHeadersValidAspxStyle.aspx.cs
│ │ │ │ ├── FileHeadersValidDingbatItems{TKey,TValue}.cs
│ │ │ │ ├── FileHeadersValidFilename.cs
│ │ │ │ ├── FileHeadersValidGenerics.cs
│ │ │ │ ├── FileHeadersValidGenerics{T}.cs
│ │ │ │ ├── FileHeadersValidIGenericContravariant{T}.cs
│ │ │ │ ├── FileHeadersValidIGenericCovariant{T}.cs
│ │ │ │ ├── FileHeadersValidPartial.Nested.cs
│ │ │ │ ├── FileHeadersValidSummary.cs
│ │ │ │ ├── FileHeadersValidWithEnumAndParam.cs
│ │ │ │ ├── FileHeadersValidWithEnumFirst.cs
│ │ │ │ ├── FileHeadersWhitespaceFile.cs
│ │ │ │ ├── Global.asax.cs
│ │ │ │ ├── IFileHeadersValidMultipleTypes.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── LineSpacing
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile1.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile10.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile2.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile3.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile4.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile5.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile6.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile7.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile8.cs
│ │ │ │ ├── BlankLinesAtStartAndEndOfFile9.cs
│ │ │ │ ├── LineSpacingBetweenAssemblyAttributes.cs
│ │ │ │ ├── LineSpacingBetweenElements.cs
│ │ │ │ ├── LineSpacingBlankLineCurly.cs
│ │ │ │ ├── LineSpacingChainedStatements.cs
│ │ │ │ ├── LineSpacingClosingCurly.cs
│ │ │ │ ├── LineSpacingCurlyNoFollowingBlankLine.cs
│ │ │ │ ├── LineSpacingCurlyPrecedingBlankLine.cs
│ │ │ │ ├── LineSpacingFileHeaderNoBlankLines.cs
│ │ │ │ ├── LineSpacingFileHeaderOneBlankLine.cs
│ │ │ │ ├── LineSpacingFileHeaderTwoBlankLines.cs
│ │ │ │ ├── LineSpacingMultipleBlankLines.cs
│ │ │ │ ├── LineSpacingOpeningCurly.cs
│ │ │ │ ├── LineSpacingSingleLineComments.cs
│ │ │ │ ├── LineSpacingXmlHeaders.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── MethodParameters
│ │ │ │ ├── ConstructorInitializerSpanningMultipleLines.cs
│ │ │ │ ├── DelegateDeclarationClosingParenthesisPlacement.cs
│ │ │ │ ├── DelegateDeclarationCommaPlacement.cs
│ │ │ │ ├── DelegateDeclarationOpeningParenthesisPlacement.cs
│ │ │ │ ├── DelegateDeclarationParameterFollowsComma.cs
│ │ │ │ ├── DelegateDeclarationParameterListStart.cs
│ │ │ │ ├── DelegateDeclarationSpanningMultipleLines.cs
│ │ │ │ ├── DelegateDeclarationSplitParameterMustStartOnLineAfterDeclaration.cs
│ │ │ │ ├── DelegateDeclarationValidPlacement.cs
│ │ │ │ ├── IndexerAccessBracketPlacement.cs
│ │ │ │ ├── IndexerDeclarationClosingParenthesisPlacement.cs
│ │ │ │ ├── IndexerDeclarationCommaPlacement.cs
│ │ │ │ ├── IndexerDeclarationOpeningParenthesisPlacement.cs
│ │ │ │ ├── IndexerDeclarationParameterFollowsComma.cs
│ │ │ │ ├── IndexerDeclarationParameterListStart.cs
│ │ │ │ ├── IndexerDeclarationSpanningMultipleLines.cs
│ │ │ │ ├── IndexerDeclarationSplitParameterMustStartOnLineAfterDeclaration.cs
│ │ │ │ ├── IndexerDeclarationValidPlacement.cs
│ │ │ │ ├── InterfaceMethodDeclarationClosingParenthesisPlacement.cs
│ │ │ │ ├── InterfaceMethodDeclarationCommaPlacement.cs
│ │ │ │ ├── InterfaceMethodDeclarationOpeningParenthesisPlacement.cs
│ │ │ │ ├── InterfaceMethodDeclarationParameterFollowsComma.cs
│ │ │ │ ├── InterfaceMethodDeclarationParameterListStart.cs
│ │ │ │ ├── InterfaceMethodDeclarationSpanningMultipleLines.cs
│ │ │ │ ├── InterfaceMethodDeclarationSplitParameterMustStartOnLineAfterDeclaration.cs
│ │ │ │ ├── InterfaceMethodDeclarationValidPlacement.cs
│ │ │ │ ├── MethodCallMultiLineParameter.cs
│ │ │ │ ├── MethodCallValidPlacement.cs
│ │ │ │ ├── MethodDeclarationClosingParenthesisPlacement.cs
│ │ │ │ ├── MethodDeclarationCommaPlacement.cs
│ │ │ │ ├── MethodDeclarationOpeningParenthesisPlacement.cs
│ │ │ │ ├── MethodDeclarationParameterFollowsComma.cs
│ │ │ │ ├── MethodDeclarationParameterListStart.cs
│ │ │ │ ├── MethodDeclarationSpanningMultipleLines.cs
│ │ │ │ ├── MethodDeclarationSplitParameterMustStartOnLineAfterDeclaration.cs
│ │ │ │ ├── MethodDeclarationValidPlacement.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── Naming
│ │ │ │ ├── InvalidNaming.cs
│ │ │ │ ├── TestDescription.xml
│ │ │ │ ├── ValidHungarian.cs
│ │ │ │ └── ValidNaming.cs
│ │ │ ├── Parenthesis
│ │ │ │ ├── ArithmeticParenthesis.cs
│ │ │ │ ├── AttributeConstructorParenthesis.cs
│ │ │ │ ├── ConditionalLogicalParenthesis.cs
│ │ │ │ ├── Parenthesis.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── QueryClauses
│ │ │ │ ├── InvalidContinuationQueryClauses.cs
│ │ │ │ ├── InvalidQueryClauses.cs
│ │ │ │ ├── TestDescription.xml
│ │ │ │ └── ValidQueryClauses.cs
│ │ │ ├── Regions
│ │ │ │ ├── DoNotPlaceRegionsWithinElements.cs
│ │ │ │ ├── DoNotUseRegions.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── Spacing
│ │ │ │ ├── AttributeBrackets.cs
│ │ │ │ ├── CloseCurlyBracket.cs
│ │ │ │ ├── CloseParenthesis.cs
│ │ │ │ ├── CloseSquareBracket.cs
│ │ │ │ ├── Colons.cs
│ │ │ │ ├── DereferenceSymbol.cs
│ │ │ │ ├── GenericBrackets.cs
│ │ │ │ ├── IncrementDecrementSymbols.cs
│ │ │ │ ├── Keywords.cs
│ │ │ │ ├── MemberAccessSymbol.cs
│ │ │ │ ├── NegativeSymbol.cs
│ │ │ │ ├── NullConditional.cs
│ │ │ │ ├── OpenParenthesis.cs
│ │ │ │ ├── OpenSquareBracket.cs
│ │ │ │ ├── PositiveSymbol.cs
│ │ │ │ ├── Semicolon.cs
│ │ │ │ ├── StringInterpolation.cs
│ │ │ │ ├── TestDescription.xml
│ │ │ │ └── UnarySymbols.cs
│ │ │ ├── Statements
│ │ │ │ ├── BlockStatementsEmbeddedStuff.cs
│ │ │ │ ├── StatementsExtraSemicolon.cs
│ │ │ │ ├── StatementsMultipleStatementsOnOneLine.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── StringFormat
│ │ │ │ ├── StringFormat.cs
│ │ │ │ └── TestDescription.xml
│ │ │ ├── Tabs
│ │ │ │ ├── Tabs.cs
│ │ │ │ └── TestDescription.xml
│ │ │ └── UnnecessaryCode
│ │ │ │ ├── AnonymousMethodParenthesis.cs
│ │ │ │ ├── TestDescription.xml
│ │ │ │ ├── UnnecessaryCodeCheckedUncheckedStatement.cs
│ │ │ │ ├── UnnecessaryCodeLockStatement.cs
│ │ │ │ ├── UnnecessaryCodeStaticConstructor.cs
│ │ │ │ ├── UnnecessaryCodeTryStatement.cs
│ │ │ │ └── UnnecessaryCodeUnsafeStatement.cs
│ │ └── bin
│ │ │ └── Debug
│ │ │ └── TestData
│ │ │ └── FileHeaders
│ │ │ └── FileHeadersValidAspxStyle.aspx.cs
│ ├── CSharpParserSampleFilesTest
│ │ ├── Settings.StyleCop
│ │ ├── TestData
│ │ │ ├── CodeBoxBugs
│ │ │ │ ├── 11227.cs
│ │ │ │ ├── 11519.cs
│ │ │ │ ├── 1409.cs
│ │ │ │ ├── 16164.cs
│ │ │ │ ├── 16612.cs
│ │ │ │ ├── 1721.cs
│ │ │ │ ├── 17737.cs
│ │ │ │ ├── 1973.cs
│ │ │ │ ├── 20420.cs
│ │ │ │ ├── 23002.cs
│ │ │ │ ├── 23020.cs
│ │ │ │ ├── 23021.cs
│ │ │ │ ├── 23022.cs
│ │ │ │ ├── 23028.cs
│ │ │ │ ├── 2317.cs
│ │ │ │ ├── 2389.cs
│ │ │ │ ├── 2390.cs
│ │ │ │ ├── 25425.cs
│ │ │ │ ├── 2568.cs
│ │ │ │ ├── 26141.cs
│ │ │ │ ├── 26153.cs
│ │ │ │ ├── 26321.cs
│ │ │ │ ├── 26322.cs
│ │ │ │ ├── 26324.cs
│ │ │ │ ├── 26431.cs
│ │ │ │ ├── 26705.1.cs
│ │ │ │ ├── 26705.2.cs
│ │ │ │ ├── 26705.cs
│ │ │ │ ├── 26913.cs
│ │ │ │ ├── 26915.cs
│ │ │ │ ├── 26917.cs
│ │ │ │ ├── 3024.cs
│ │ │ │ ├── 3615.cs
│ │ │ │ └── 9418.cs
│ │ │ ├── CodeGalleryBugs
│ │ │ │ ├── 121.cs
│ │ │ │ ├── 124.cs
│ │ │ │ ├── 125.cs
│ │ │ │ ├── 151.cs
│ │ │ │ ├── 158.cs
│ │ │ │ ├── 161.cs
│ │ │ │ ├── 163.cs
│ │ │ │ ├── 169.cs
│ │ │ │ ├── 171.cs
│ │ │ │ ├── 173.cs
│ │ │ │ ├── 175.cs
│ │ │ │ ├── 192.cs
│ │ │ │ ├── 21.cs
│ │ │ │ ├── 217.cs
│ │ │ │ ├── 24.cs
│ │ │ │ ├── 249.cs
│ │ │ │ ├── 257.cs
│ │ │ │ ├── 265.cs
│ │ │ │ ├── 267.cs
│ │ │ │ ├── 279.cs
│ │ │ │ ├── 28.cs
│ │ │ │ ├── 280.cs
│ │ │ │ ├── 286.cs
│ │ │ │ ├── 290.cs
│ │ │ │ ├── 292.cs
│ │ │ │ ├── 50.cs
│ │ │ │ ├── 59.cs
│ │ │ │ ├── 83.cs
│ │ │ │ └── 95.cs
│ │ │ └── CodePlexBugs
│ │ │ │ └── 6406.cs
│ │ └── run.cmd
│ ├── CSharpParserTest
│ │ ├── CSharpParserTest.csproj
│ │ ├── CSharpParserTest.csproj.user
│ │ ├── ParserTests.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Settings.StyleCop
│ │ ├── StyleCop.Cache
│ │ └── TestData
│ │ │ ├── Assorted
│ │ │ ├── Assorted.cs
│ │ │ ├── AssortedObjectModel.xml
│ │ │ ├── ErrorClass.cs
│ │ │ ├── ErrorClassObjectModel.xml
│ │ │ ├── EscapedNames.cs
│ │ │ ├── EscapedNamesObjectModel.xml
│ │ │ ├── InvalidEscapedName1.cs
│ │ │ ├── InvalidEscapedName1ObjectModel.xml
│ │ │ ├── InvalidEscapedName2.cs
│ │ │ ├── InvalidEscapedName2ObjectModel.xml
│ │ │ ├── InvalidEscapedName3.cs
│ │ │ ├── InvalidEscapedName3ObjectModel.xml
│ │ │ ├── InvalidEscapedName4.cs
│ │ │ ├── InvalidEscapedName4ObjectModel.xml
│ │ │ ├── TestDescription.xml
│ │ │ ├── UTF8BOMNotSet.cs
│ │ │ ├── UTF8BOMNotSetObjectModel.xml
│ │ │ ├── UTF8BOMSet.cs
│ │ │ └── UTF8BOMSetObjectModel.xml
│ │ │ ├── CastExpression
│ │ │ ├── CastExpressionWithLinqKeyWordAsVariable.cs
│ │ │ ├── CastExpressionWithLinqKeyWordAsVariableObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── Elements
│ │ │ ├── Class.cs
│ │ │ ├── ClassObjectModel.xml
│ │ │ ├── Constructor.cs
│ │ │ ├── ConstructorObjectModel.xml
│ │ │ ├── Delegate.cs
│ │ │ ├── DelegateObjectModel.xml
│ │ │ ├── Destructor.cs
│ │ │ ├── DestructorObjectModel.xml
│ │ │ ├── Enum.cs
│ │ │ ├── EnumObjectModel.xml
│ │ │ ├── Event.cs
│ │ │ ├── EventObjectModel.xml
│ │ │ ├── ExternAliasDirective.cs
│ │ │ ├── ExternAliasDirectiveObjectModel.xml
│ │ │ ├── Field.cs
│ │ │ ├── FieldObjectModel.xml
│ │ │ ├── FilterExceptions.cs
│ │ │ ├── FilterExceptionsObjectModel.xml
│ │ │ ├── Indexer.cs
│ │ │ ├── IndexerObjectModel.xml
│ │ │ ├── Interface.cs
│ │ │ ├── InterfaceObjectModel.xml
│ │ │ ├── Method.cs
│ │ │ ├── MethodObjectModel.xml
│ │ │ ├── NameOf.cs
│ │ │ ├── NameOfObjectModel.xml
│ │ │ ├── Namespace.cs
│ │ │ ├── NamespaceObjectModel.xml
│ │ │ ├── PreProcessorDirectives.cs
│ │ │ ├── PreProcessorDirectives2.cs
│ │ │ ├── PreProcessorDirectives2ObjectModel.xml
│ │ │ ├── PreProcessorDirectives3.cs
│ │ │ ├── PreProcessorDirectives3ObjectModel.xml
│ │ │ ├── PreProcessorDirectivesObjectModel.xml
│ │ │ ├── Property.cs
│ │ │ ├── PropertyObjectModel.xml
│ │ │ ├── Struct.cs
│ │ │ ├── StructObjectModel.xml
│ │ │ ├── TestDescription.xml
│ │ │ ├── UsingDirective.cs
│ │ │ └── UsingDirectiveObjectModel.xml
│ │ │ ├── ExtensionMethods
│ │ │ ├── InvalidExtensionMethod1.cs
│ │ │ ├── InvalidExtensionMethod2.cs
│ │ │ ├── InvalidExtensionMethod3.cs
│ │ │ ├── InvalidExtensionMethod4.cs
│ │ │ ├── TestDescription.xml
│ │ │ ├── ValidExtensionMethods.cs
│ │ │ └── ValidExtensionMethodsObjectModel.xml
│ │ │ ├── FileLists
│ │ │ ├── TestDescription.xml
│ │ │ ├── TestFile1.cs
│ │ │ └── TestFile2.cs
│ │ │ ├── GeneratedCode
│ │ │ ├── AccessModifiersMissing.Designer.cs
│ │ │ ├── AccessModifiersMissing.cs
│ │ │ ├── AccessModifiersMissing.g.cs
│ │ │ ├── AccessModifiersMissing.g.i.cs
│ │ │ ├── AccessModifiersMissing.generated.cs
│ │ │ ├── AccessModifiersMissing2.G.I.Cs
│ │ │ ├── AccessModifiersMissing2.G.cS
│ │ │ ├── AccessModifiersMissing2.GeNeRaTeD.Cs
│ │ │ ├── AccessModifiersMissing2.dEsIgNeR.cS
│ │ │ ├── AccessModifiersMissing_AutogeneratedHeader.cs
│ │ │ ├── AccessModifiersMissing_AutogeneratedRegion.cs
│ │ │ └── TestDescription.xml
│ │ │ ├── ImplicitlyTypedArrays
│ │ │ ├── ImplicitlyTypedArrays.cs
│ │ │ ├── ImplicitlyTypedArraysObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── IndexInitializer
│ │ │ ├── IndexInitializersExpressions.cs
│ │ │ ├── IndexInitializersExpressionsObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── LambdaExpressions
│ │ │ ├── LambdaExpressions.cs
│ │ │ ├── LambdaExpressionsObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── NamedArguments
│ │ │ ├── NamedArguments.cs
│ │ │ ├── NamedArgumentsObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── NullConditionExpressions
│ │ │ ├── NullConditionExpressions.cs
│ │ │ ├── NullConditionExpressionsObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── ObjectAndCollectionInitializers
│ │ │ ├── ObjectAndCollectionInitializers.cs
│ │ │ ├── ObjectAndCollectionInitializersObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── QueryExpressions
│ │ │ ├── QueryExpressions.cs
│ │ │ ├── QueryExpressionsObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ ├── Strings
│ │ │ ├── Strings.cs
│ │ │ ├── StringsObjectModel.xml
│ │ │ └── TestDescription.xml
│ │ │ └── TernaryOperator
│ │ │ ├── TernaryOperator.cs
│ │ │ ├── TernaryOperatorObjectModel.xml
│ │ │ └── TestDescription.xml
│ ├── CSharpParserTestRules
│ │ ├── CSharpParserTestRules.csproj
│ │ ├── CSharpParserTestRules.csproj.user
│ │ ├── CsParserDump.cs
│ │ ├── CsParserDump.xml
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── StyleCop.Cache
│ ├── FxCopRules.ruleset
│ ├── ObjectBasedEnvironmentTest
│ │ ├── ObjectBasedEnvironmentTest.csproj
│ │ ├── ObjectBasedEnvironmentTest.csproj.user
│ │ ├── ObjectBasedSourceCode.cs
│ │ ├── ObjectBasedSourceCodeTest.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── StaticSource.cs
│ │ └── StyleCop.Cache
│ ├── PerfHarness
│ │ ├── PerfHarness.csproj
│ │ ├── PerfHarness.csproj.user
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── StyleCop.Cache
│ │ └── app.config
│ ├── Performance
│ │ └── LargeTestFile
│ │ │ ├── LargeFile.psess
│ │ │ ├── LargeTestFile.cs
│ │ │ ├── LargeTestFilePerf.bat
│ │ │ └── Results.txt
│ ├── TestHarness
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Strings.Designer.cs
│ │ ├── Strings.resx
│ │ ├── StyleCop.Cache
│ │ ├── StyleCopTest.csproj
│ │ ├── StyleCopTest.csproj.user
│ │ ├── StyleCopTestRunner.cs
│ │ ├── TestCodeFileInfo.cs
│ │ ├── TestInfo.cs
│ │ └── ViolationInfo.cs
│ └── VSPackageUnitTest
│ │ ├── AnalysisHelperTest.cs
│ │ ├── AnalysisThreadTest.cs
│ │ ├── BasicUnitTest.cs
│ │ ├── Extensions
│ │ └── Mock.cs
│ │ ├── InvisibleFormTest.cs
│ │ ├── Mocks
│ │ ├── Mock.cs
│ │ ├── MockBuildEvents.cs
│ │ ├── MockDTE.cs
│ │ ├── MockDTEGlobals.cs
│ │ ├── MockDTEProject.cs
│ │ ├── MockDTEProjects.cs
│ │ ├── MockDTESolution.cs
│ │ ├── MockDocument.cs
│ │ ├── MockDocuments.cs
│ │ ├── MockEnumHierarchies.cs
│ │ ├── MockEvents.cs
│ │ ├── MockIVsProject.cs
│ │ ├── MockRDT.cs
│ │ ├── MockServiceProvider.cs
│ │ ├── MockShell.cs
│ │ ├── MockSolution.cs
│ │ ├── MockSolutionBuildManager.cs
│ │ ├── MockStatusBar.cs
│ │ ├── MockTaskEnum.cs
│ │ ├── MockTaskList.cs
│ │ ├── MockTerm.cs
│ │ ├── MockTermTable.cs
│ │ ├── MockTextLines.cs
│ │ ├── MockTextManager.cs
│ │ ├── MockTextSelection.cs
│ │ ├── MockTextView.cs
│ │ ├── MockUIShellOpenDocument.cs
│ │ ├── MockVirtualPoint.cs
│ │ ├── MockWebBrowsingService.cs
│ │ ├── MockWindow.cs
│ │ ├── MockWindowFrame.cs
│ │ └── MockWindows.cs
│ │ ├── PackageCommandSetTest.cs
│ │ ├── ProjectCollectionTest.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── Settings.StyleCop
│ │ ├── SolutionListenerTest.cs
│ │ ├── StyleCop.Cache
│ │ ├── TaskProviderTest.cs
│ │ ├── TaskTest.cs
│ │ ├── UpdateSolutionListenerTest.cs
│ │ ├── Utilities.cs
│ │ ├── VSPackageUnitTest.csproj
│ │ ├── VSPackageUnitTest.csproj.orig
│ │ ├── VSPackageUnitTest.csproj.user
│ │ ├── VSPackageUnitTest.vsmdi
│ │ ├── VSWindowsTest.cs
│ │ └── ViolationTaskTest.cs
└── VisualStudioTemplates
│ ├── ItemTemplates
│ └── CSharp
│ │ └── Code
│ │ └── 1033
│ │ ├── Class.zip
│ │ ├── CodeFile.zip
│ │ └── Interface.zip
│ └── ProjectTemplates
│ └── CSharp
│ └── Windows
│ └── 1033
│ ├── ClassLibrary.zip
│ ├── ConsoleApplication.zip
│ └── WindowsApplication.zip
├── README.md
├── Tools
├── MSBuild
│ ├── StyleCop.Build.Targets
│ └── StyleCop.Shipping.Targets
├── MSTest
│ ├── 10.0
│ │ ├── MSTest.exe
│ │ ├── Microsoft.VisualStudio.QualityTools.AgentObject.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.AgentProcessManager.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CMI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CheckinPolicies.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodeCoverage.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITest.Controls.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestPackage.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestUI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Common.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Common.xml
│ │ ├── Microsoft.VisualStudio.QualityTools.Controller.SpooledJob.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.ControllerObject.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.DataCollectionAgentObject.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.ExecutionCommon.xml
│ │ ├── Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAgent.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Linking.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTest.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.dll.manifest
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.vsto
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelCommon.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelCommon.tlb
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExec.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestFramework.xml
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestPackage.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestPackageUI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestUI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.NICServices.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.NetworkEmulation.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.NetworkEmulationAPI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.OperationalStore.ClientHelper.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Plugins.CodeCoverage.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.RecorderBarBHO100.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Resource.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Sqm.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.TMI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.TestCaseManagementUI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Adapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.GenericTest.ObjectModel.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Adapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.ManualTest.ObjectModel.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Adapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.ObjectModel.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.TuipPackageUI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.UnitTest.AssemblyResolver.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WarehouseCommon.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WebTestFramework.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WebTestFramework.xml
│ │ ├── Microsoft.VisualStudio.QualityTools.WebTestPlayback.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WebTestRecorderPlugins.dll
│ │ ├── QTAgent.exe
│ │ ├── QTAgent.exe.config
│ │ ├── QTAgent32.exe
│ │ ├── QTAgent32.exe.config
│ │ └── SummaryResult.xsd
│ └── 12.0
│ │ ├── MSTest.exe
│ │ ├── Microsoft.VisualStudio.QualityTools.CMI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CheckinPolicies.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodeCoverage.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITest.Agent.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITest.Controller.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITest.Controls.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestEditor.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestExtension.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestFramework.xml
│ │ ├── Microsoft.VisualStudio.QualityTools.CodedUITestPackage.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Controller.SpooledJob.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.DataCollectionCommon.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAgent.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Linking.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTest.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.dll.manifest
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelAddIn.vsto
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelCommon.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExcelCommon.tlb
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestExec.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestPackage.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.LoadTestUI.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.NICServices.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.NetworkEmulation.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.OperationalStore.ClientHelper.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.RecorderBarBHO100.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.RecorderBarBHO100.x64.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Sqm.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Adapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.GenericTest.ObjectModel.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Adapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.ManualTest.ObjectModel.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Adapter.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.ObjectModel.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.Utilities.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WarehouseCommon.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WebTest.SharePoint.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WebTestPlayback.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WindowsStore.CodedUITest.Agent.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WindowsStore.CodedUITest.Controls.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WindowsStore.CodedUITestExtension.dll
│ │ ├── Microsoft.VisualStudio.QualityTools.WindowsStore.CodedUITestExtension.xml
│ │ ├── Microsoft.VisualStudio.TestTools.UITest.Common.dll
│ │ ├── Microsoft.VisualStudio.TestTools.UITest.Common.xml
│ │ ├── Microsoft.VisualStudio.TestTools.UITest.Extension.dll
│ │ ├── Microsoft.VisualStudio.TestTools.UITest.Extension.xml
│ │ ├── Microsoft.VisualStudio.TestTools.UITesting.dll
│ │ ├── Microsoft.VisualStudio.TestTools.UITesting.xml
│ │ ├── Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll
│ │ ├── Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.xml
│ │ └── UIAComWrapper.dll
├── MockObjectFramework
│ └── Microsoft.VisualStudio.QualityTools.MockObjectFramework.dll
└── NuGet
│ └── NuGet.exe
└── disable_appveyor.yml
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
--------------------------------------------------------------------------------
/Build/BeforeBuild.ps1:
--------------------------------------------------------------------------------
1 | # The version number for this build
2 | $versionNumber = $Env:APPVEYOR_BUILD_VERSION
3 |
4 | # Increment vsix version only if release else this is a pull request or develop branch
5 | if ($versionNumber -notmatch "-")
6 | {
7 | # Increment vsix version
8 | Vsix-IncrementVsixVersion -versionType "revision" | Vsix-UpdateBuildVersion
9 | }
10 |
11 | # Restore nuget dependency for codecov
12 | nuget restore Project/StyleCop.sln
--------------------------------------------------------------------------------
/Build/BuildFinish.ps1:
--------------------------------------------------------------------------------
1 | # The version number for this build
2 | $versionNumber = $Env:APPVEYOR_BUILD_VERSION
3 |
4 | # Build configuration
5 | $configuration= $Env:CONFIGURATION
6 |
7 | # Push artifact only if release else this is a pull request or develop branch
8 | if ($versionNumber -notmatch "-")
9 | {
10 | Push-AppveyorArtifact Project/Src/VSIXProject/bin/$configuration/VSIXProject.vsix -FileName VSIXPackage.vsix - DeploymentName Visual-StyleCop.vsix
11 | Push-AppveyorArtifact Visual-StyleCop.MSBuild.$versionNumber.nupkg -FileName Visual-StyleCop.MSBuild.$versionNumber.nupkg -DeploymentName Visual-StyleCop.MSBuild.$versionNumber.nupkg
12 | }
13 |
14 | # Remote desktop, uncomment to wait for an hour
15 | # $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
16 |
--------------------------------------------------------------------------------
/Build/Install.ps1:
--------------------------------------------------------------------------------
1 | git config --global core.autocrlf true
2 |
3 | # Remote Desktop information
4 | iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
5 |
6 | # Import extension to update Vsix version
7 | Import-Module ./Build/Extensions/vsix.ps1 | iex
8 |
--------------------------------------------------------------------------------
/Docs/CSharp Language Specification/CSharp Language Specification 3.0.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/CSharp Language Specification/CSharp Language Specification 3.0.docx
--------------------------------------------------------------------------------
/Docs/CSharp Language Specification/CSharp Language Specification 4.0.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/CSharp Language Specification/CSharp Language Specification 4.0.docx
--------------------------------------------------------------------------------
/Docs/CSharp Language Specification/CSharp Language Specification 5.0.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/CSharp Language Specification/CSharp Language Specification 5.0.docx
--------------------------------------------------------------------------------
/Docs/Rules/BuildDocs.proj:
--------------------------------------------------------------------------------
1 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Docs/Rules/Images/CompanyInformationSettings.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Rules/Images/CompanyInformationSettings.JPG
--------------------------------------------------------------------------------
/Docs/Rules/Images/HungarianSettings.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Rules/Images/HungarianSettings.JPG
--------------------------------------------------------------------------------
/Docs/Rules/script/StandardText.js:
--------------------------------------------------------------------------------
1 |
2 | var styleCopName = "StyleCop";
3 | var styleCopVersion = "4.7";
4 |
5 | function StyleCopNameAndVersion()
6 | {
7 | return (styleCopName + " " + styleCopVersion);
8 | }
9 |
10 | function WriteStyleCopNameAndVersion()
11 | {
12 | document.write(StyleCopNameAndVersion());
13 | return;
14 | }
15 |
16 | function WritePageTop(title)
17 | {
18 | document.write("
");
19 | return;
20 | }
21 |
22 | function WritePageFooter()
23 | {
24 | document.write("");
25 | return;
26 | }
--------------------------------------------------------------------------------
/Docs/Sdk/StyleCopSDK.hhp:
--------------------------------------------------------------------------------
1 | [OPTIONS]
2 | Auto Index=Yes
3 | Compatibility=1.1 or later
4 | Compiled file=StyleCopSDK.chm
5 | Contents file=StyleCopSDKDocumentation.hhc
6 | Default Window=MsdnHelp
7 | Display compile progress=No
8 | Error log file=errors.log
9 | Full-text search=Yes
10 | Index file=StyleCopSDKDocumentation.hhk
11 | Language=0x409 English (United States)
12 | Title=StyleCop SDK
13 |
14 | [WINDOWS]
15 | MsdnHelp="StyleCop SDK","StyleCopSDKDocumentation.hhc","StyleCopSDKDocumentation.hhk","html\_StyleCopSDK.htm","html\_StyleCopSDK.htm",,,,,0x62520,220,0x387e,[86,51,872,558],,,,,,,0
16 |
17 |
18 | [INFOTYPES]
19 |
20 |
--------------------------------------------------------------------------------
/Docs/Sdk/StyleCopSDK.shfbproj_HeiserC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/StyleCopSDK.shfbproj_HeiserC
--------------------------------------------------------------------------------
/Docs/Sdk/icons/CFW.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/CFW.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/Caution.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/Caution.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/LastChild.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/LastChild.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/NotLastChild.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/NotLastChild.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/alert_caution.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/alert_caution.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/alert_note.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/alert_note.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/alert_security.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/alert_security.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/collapse_all.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/collapse_all.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/copycode.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/copycode.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/expand_all.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/expand_all.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privclass.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privclass.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privdelegate.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privdelegate.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privenum.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privenum.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privevent.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privevent.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privfield.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privfield.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privinterface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privinterface.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privmethod.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privmethod.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privproperty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privproperty.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/privstructure.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/privstructure.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protclass.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protclass.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protdelegate.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protdelegate.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protenum.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protenum.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protevent.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protevent.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protfield.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protfield.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protfield.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protfield.png
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protinterface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protinterface.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protmethod.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protmethod.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protoperator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protoperator.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protproperty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protproperty.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/protstructure.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/protstructure.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubclass.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubclass.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubdelegate.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubdelegate.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubenum.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubenum.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubevent.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubevent.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubfield.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubfield.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubinterface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubinterface.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubmethod.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubmethod.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/puboperator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/puboperator.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubproperty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubproperty.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/pubstructure.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/pubstructure.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/security.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/security.gif
--------------------------------------------------------------------------------
/Docs/Sdk/icons/static.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/Sdk/icons/static.gif
--------------------------------------------------------------------------------
/Docs/StyleCop - Version 4.7.49.chm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/StyleCop - Version 4.7.49.chm
--------------------------------------------------------------------------------
/Docs/StyleCop MSBuild.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/StyleCop MSBuild.docx
--------------------------------------------------------------------------------
/Docs/StyleCop User Guide.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/StyleCop User Guide.docx
--------------------------------------------------------------------------------
/Docs/StyleCopSDK.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Docs/StyleCopSDK.htm
--------------------------------------------------------------------------------
/Project/CustomDictionary.en-GB.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | canonicalise
6 | canonicalised
7 | canonicaliser
8 | canonicalisers
9 | canonicalises
10 | deserialise
11 | deserialised
12 | deserialiser
13 | deserialisers
14 | deserialises
15 | favourited
16 | initialiser
17 | initialisers
18 | serialisable
19 | serialiser
20 | uninitialise
21 | uninitialises
22 |
23 |
24 | preprocessed
25 | shortlived
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Project/CustomDictionary.en-US.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | canonicalize
6 | canonicalized
7 | canonicalizer
8 | canonicalizers
9 | canonicalizes
10 | deserialize
11 | deserialized
12 | deserializes
13 | deserialized
14 | favorited
15 | initializer
16 | initializers
17 | serializable
18 | serializer
19 | uninitialize
20 | uninitializes
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Project/Src/AssemblyVersion.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 4.7.49.0
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Project/Src/AssemblyVersion.txt:
--------------------------------------------------------------------------------
1 | 4.7.49.0
--------------------------------------------------------------------------------
/Project/Src/AssemblyVersion.wxi:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Project/Src/FxCopRules.ruleset:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Project/Src/InternalAnalyzers/Settings.StyleCop:
--------------------------------------------------------------------------------
1 |
2 |
3 | ..\..\BaseSettings.StyleCop
4 | Linked
5 |
6 |
--------------------------------------------------------------------------------
/Project/Src/Parser/CodeAnalysisDictionary.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Casted
6 | declarator
7 | Declarators
8 | Elif
9 | Endif
10 | Foreach
11 | Goto
12 | Multi
13 | MultiLineComment
14 | Params
15 | Readonly
16 | Sizeof
17 | Stackalloc
18 | Typeof
19 | Whitespace
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Project/Src/SettingsEditor/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Project/Src/SettingsEditor/Properties/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Project/Src/SettingsEditor/Settings.StyleCop:
--------------------------------------------------------------------------------
1 |
2 |
3 | ..\..\Settings.StyleCop
4 | Linked
5 |
6 |
--------------------------------------------------------------------------------
/Project/Src/SettingsEditor/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Project/Src/StyleCop/CustomDictionary.en-GB.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | canonicalise
6 | canonicalised
7 | canonicaliser
8 | canonicalisers
9 | canonicalises
10 | deserialise
11 | deserialised
12 | deserialiser
13 | deserialisers
14 | deserialises
15 | favourited
16 | initialiser
17 | initialisers
18 | serialisable
19 | serialiser
20 | uninitialise
21 | uninitialises
22 |
23 |
24 | preprocessed
25 | shortlived
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Project/Src/StyleCop/CustomDictionary.en-US.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | canonicalize
6 | canonicalized
7 | canonicalizer
8 | canonicalizers
9 | canonicalizes
10 | deserialize
11 | deserialized
12 | deserializes
13 | deserialized
14 | favorited
15 | initializer
16 | initializers
17 | serializable
18 | serializer
19 | uninitialize
20 | uninitializes
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Project/Src/StyleCop/Images/AnalyzerNode.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/StyleCop/Images/AnalyzerNode.bmp
--------------------------------------------------------------------------------
/Project/Src/StyleCop/Images/ParserNode.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/StyleCop/Images/ParserNode.bmp
--------------------------------------------------------------------------------
/Project/Src/StyleCop/Images/RuleGroupNode.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/StyleCop/Images/RuleGroupNode.bmp
--------------------------------------------------------------------------------
/Project/Src/StyleCop/Images/RuleNode.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/StyleCop/Images/RuleNode.bmp
--------------------------------------------------------------------------------
/Project/Src/StyleCop/StyleCop.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ShowAllFiles
5 |
6 |
--------------------------------------------------------------------------------
/Project/Src/StyleCop/StyleCopAddIn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Project/Src/StyleCop/mssp7en.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/StyleCop/mssp7en.dll
--------------------------------------------------------------------------------
/Project/Src/StyleCop/mssp7en.lex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/StyleCop/mssp7en.lex
--------------------------------------------------------------------------------
/Project/Src/VSIXProject/Microsoft.VisualStudio.Shell.14.0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/VSIXProject/Microsoft.VisualStudio.Shell.14.0.dll
--------------------------------------------------------------------------------
/Project/Src/VSIXProject/Microsoft.VisualStudio.Shell.Immutable.14.0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/VSIXProject/Microsoft.VisualStudio.Shell.Immutable.14.0.dll
--------------------------------------------------------------------------------
/Project/Src/VSIXProject/StyleCop.VSPackage.pkgdef:
--------------------------------------------------------------------------------
1 | [$RootKey$\InstalledProducts\StyleCop]
2 | @="#110"
3 | "Package"="{629EB7CC-69C2-43AC-9BC9-482B0F810C4E}"
4 | "PID"="4.7"
5 | "ProductDetails"="#112"
6 | "LogoID"="#400"
7 | [$RootKey$\Packages\{629EB7CC-69C2-43AC-9BC9-482B0F810C4E}]
8 | @="StyleCop.VisualStudio.StyleCopVSPackage, StyleCop.VSPackage, Version=4.7.0.0, Culture=neutral, PublicKeyToken=f904653c63bc2738"
9 | "InprocServer32"="$WinDir$\SYSTEM32\MSCOREE.DLL"
10 | "Class"="StyleCop.VisualStudio.StyleCopVSPackage"
11 | "CodeBase"="$PackageFolder$\StyleCop.VSPackage.dll"
12 | [$RootKey$\Menus]
13 | "{629EB7CC-69C2-43AC-9BC9-482B0F810C4E}"=", 1000, 1"
14 |
15 |
--------------------------------------------------------------------------------
/Project/Src/VSIXProject/StyleCop.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/VSIXProject/StyleCop.ico
--------------------------------------------------------------------------------
/Project/Src/VSIXProject/StyleCopLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/VSIXProject/StyleCopLogo.png
--------------------------------------------------------------------------------
/Project/Src/VSIXProject/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Project/Src/VSPackage/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | https://github.com/Visual-Stylecop/Visual-StyleCop/wiki/
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Project/Src/VSPackage/Resources/Images_32bit.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/VSPackage/Resources/Images_32bit.bmp
--------------------------------------------------------------------------------
/Project/Src/VSPackage/Resources/StyleCop.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Src/VSPackage/Resources/StyleCop.ico
--------------------------------------------------------------------------------
/Project/Src/VSPackage/Settings.StyleCop:
--------------------------------------------------------------------------------
1 |
2 |
3 | ..\..\Settings.StyleCop
4 | Linked
5 |
6 |
--------------------------------------------------------------------------------
/Project/Src/VSPackage/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | https://github.com/Visual-Stylecop/Visual-StyleCop/wiki/
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Project/StyleCop.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/StyleCop.snk
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/CSharpAnalyzersTest.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ShowAllFiles
5 |
6 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/Settings.StyleCop:
--------------------------------------------------------------------------------
1 |
2 |
3 | ..\..\BaseSettings.StyleCop
4 | Linked
5 |
6 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Comments/CommentsBeginWithSingleSpace.cs:
--------------------------------------------------------------------------------
1 | namespace CSharpAnalyzersTest.TestData.Comments
2 | {
3 | //Bad comment
4 | // This is fine as it directly follows another single comment line
5 |
6 | internal class CommentsBeginWithSingleSpace
7 | {
8 | //Bad comment
9 | // This is fine as it directly follows another single comment line
10 | private void MethodName()
11 | {
12 | //Bad comment
13 | // This is fine as it directly follows another single comment line
14 | }
15 | }
16 |
17 | // ok
18 | // ok
19 |
20 | internal class CommentsBeginWithSingleSpace
21 | {
22 | // ok
23 | private void MethodName()
24 | {
25 | // ok
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsCheckeds.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class CurlyBracketsCheckeds
8 | {
9 | public void TestChecked()
10 | {
11 | int x = 0;
12 |
13 | // Invalid
14 | checked { }
15 | checked { x = 2; }
16 |
17 | checked
18 | {
19 | x = 2; }
20 |
21 | checked {
22 | x = 2;
23 | }
24 |
25 | checked {
26 | x = 2; }
27 |
28 | checked
29 | { x = 2;
30 | }
31 |
32 | checked
33 | { x = 2; }
34 |
35 | // Valid
36 | checked
37 | {
38 | }
39 |
40 | checked
41 | {
42 | x = 2;
43 | }
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsConstructorInitializers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class CurlyBracketsConstructorInitializers
8 | {
9 | // Allowed constructor initializers
10 | public CurlyBracketsConstructorInitializers(bool temp)
11 | : base(delegate() { return true; })
12 | {
13 | }
14 |
15 | var obj = new MyObject(new[] { 1 })
16 | {
17 | Name = "Ex1"
18 | };
19 | }
20 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsDestructors.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class CurlyBracketsDestructors
8 | {
9 | // Invalid destructors
10 | ~CurlyBracketsDestructors() { }
11 | ~CurlyBracketsDestructors() { int x; }
12 |
13 | ~CurlyBracketsDestructors() {
14 | int x; }
15 |
16 | ~CurlyBracketsDestructors() {
17 | int x;
18 | }
19 |
20 | ~CurlyBracketsDestructors()
21 | {
22 | int x; }
23 |
24 | ~CurlyBracketsDestructors()
25 | { int x;
26 | }
27 |
28 | ~CurlyBracketsDestructors()
29 | { int x; }
30 |
31 | // Valid destructors
32 | ~CurlyBracketsDestructors()
33 | {
34 | }
35 |
36 | ~CurlyBracketsDestructors()
37 | {
38 | int x;
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsEnums.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class CurlyBracketsEnums
8 | {
9 | // Invalid enums
10 | public enum InvalidEnum1 { }
11 | public enum InvalidEnum2 { Item }
12 |
13 | public enum InvalidEnum3 {
14 | Item }
15 |
16 | public enum InvalidEnum4 {
17 | Item
18 | }
19 |
20 | public enum InvalidEnum5
21 | {
22 | Item }
23 |
24 | public enum InvalidEnum6
25 | { Item
26 | }
27 |
28 | public enum InvalidEnum7
29 | { Item }
30 |
31 | // Valid enums
32 | public enum ValidEnum1
33 | {
34 | }
35 |
36 | public enum ValidEnum2
37 | {
38 | Item
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class CurlyBracketsMethods
8 | {
9 | // Invalid methods
10 | public void InvalidMethod1() { }
11 | public void InvalidMethod2() { int x; }
12 |
13 | public void InvalidMethod3()
14 | {
15 | int x; }
16 |
17 | public void InvalidMethod4() {
18 | int x;
19 | }
20 |
21 | public void InvalidMethod5()
22 | {
23 | int x; }
24 |
25 | public void InvalidMethod6()
26 | { int x;
27 | }
28 |
29 | public void InvalidMethod7()
30 | { int x; }
31 |
32 | // Valid methods
33 | public void ValidMethod1()
34 | {
35 | }
36 |
37 | public void ValidMethod2()
38 | {
39 | int x;
40 | }
41 | }
42 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsNamespaces.cs:
--------------------------------------------------------------------------------
1 | // Invalid namespaces
2 | namespace InvalidNamespace1 { }
3 | namespace InvalidNamespace2 { using System; }
4 |
5 | namespace InvalidNamespace3
6 | {
7 | using System; }
8 |
9 | namespace InvalidNamespace4 {
10 | using System;
11 | }
12 |
13 | namespace InvalidNamespace5 {
14 | using System; }
15 |
16 | namespace InvalidNamespace6
17 | { using System;
18 | }
19 |
20 | namespace InvalidNamespace7
21 | { using System; }
22 |
23 | // Valid namespaces
24 | namespace ValidNamespace1
25 | {
26 | }
27 |
28 | namespace ValidNamespace2
29 | {
30 | using System;
31 | }
32 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsUncheckeds.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class CurlyBracketsUncheckeds
8 | {
9 | public void TestUnchecked()
10 | {
11 | int x = 0;
12 |
13 | // Invalid
14 | unchecked { }
15 | unchecked { x = 2; }
16 |
17 | unchecked
18 | {
19 | x = 2; }
20 |
21 | unchecked {
22 | x = 2;
23 | }
24 |
25 | unchecked {
26 | x = 2; }
27 |
28 | unchecked
29 | { x = 2;
30 | }
31 |
32 | unchecked
33 | { x = 2; }
34 |
35 | // Valid
36 | unchecked
37 | {
38 | }
39 |
40 | unchecked
41 | {
42 | x = 2;
43 | }
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/CurlyBrackets/CurlyBracketsUnsafes.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class CurlyBracketsUnsafes
8 | {
9 | public void TestUnsafes()
10 | {
11 | int x = 0;
12 |
13 | // Invalid
14 | unsafe { }
15 | unsafe { x = 2; }
16 |
17 | unsafe
18 | {
19 | x = 2; }
20 |
21 | unsafe {
22 | x = 2;
23 | }
24 |
25 | unsafe {
26 | x = 2; }
27 |
28 | unsafe
29 | { x = 2;
30 | }
31 |
32 | unsafe
33 | { x = 2; }
34 |
35 | // Valid
36 | unsafe
37 | {
38 | }
39 |
40 | unsafe
41 | {
42 | x = 2;
43 | }
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/DeclarationKeywordOrder/DeclarationKeywordOrderDelegates.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace CSharpAnalyzersTest.TestData
6 | {
7 | public class DeclarationKeywordOrderDelegates
8 | {
9 | // Valid delegates
10 | delegate void ValidDelegate1();
11 |
12 | public delegate void ValidDelegate2();
13 |
14 | internal delegate void ValidDelegate3();
15 |
16 | protected delegate void ValidDelegate4();
17 |
18 | protected internal delegate void ValidDelegate5();
19 |
20 | private delegate void ValidDelegate6();
21 |
22 | // Invalid delegates
23 | internal protected delegate void InvalidDelegate1();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/ElementOrder/ElementOrderEmptyFile.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Test/CSharpAnalyzersTest/TestData/ElementOrder/ElementOrderEmptyFile.cs
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/ElementOrder/ElementOrderPartialElementsMissingAccessModifier.cs:
--------------------------------------------------------------------------------
1 | namespace ElementOrderPartialElementsMissingAccessModifier
2 | {
3 | protected partial interface Interface1
4 | {
5 | }
6 |
7 | // Violation
8 | partial interface Interface2
9 | {
10 | }
11 |
12 | protected internal partial struct Struct1
13 | {
14 | }
15 |
16 | // Violation
17 | partial struct Struct2
18 | {
19 | }
20 |
21 | protected partial class Class1
22 | {
23 | }
24 |
25 | // Violation
26 | partial class Class2
27 | {
28 | }
29 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/ElementOrder/ElementOrderRootElementOrder.cs:
--------------------------------------------------------------------------------
1 | // All elements are in the opposite required order.
2 | public class ElementOrderRootElementOrderClass1
3 | {
4 | }
5 |
6 | public struct ElementOrderRootElementOrderStruct1
7 | {
8 | }
9 |
10 | public interface ElementOrderRootElementOrderInterface1
11 | {
12 | }
13 |
14 | public enum ElementOrderRootElementOrderEnum1
15 | {
16 | }
17 |
18 | public delegate void ElementOrderRootElementOrderDelegate1();
19 |
20 | namespace ElementOrderRootElementOrderNamespace1
21 | {
22 | }
23 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/ElementOrder/ElementOrderUsingDirectives.cs:
--------------------------------------------------------------------------------
1 | // The following should throw violations because they are outside of the namespace.
2 | using System;
3 | using Thread = System.Threading.Thread;
4 |
5 | namespace ElementOrderUsingDirectivesNamespace1
6 | {
7 | // The following should not throw violations as they are inside of a namespace.
8 | using System.Diagnostics;
9 | using ThreadException = System.Threading.ThreadAbortException;
10 | }
11 |
12 | namespace ElementOrderUsingDirectivesNamespace2
13 | {
14 | // The following should not throw violations as they are inside of a namespace.
15 | using System.Globalization;
16 | using ThreadException2 = System.Threading.ThreadInterruptedException;
17 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/ElementOrder/ElementOrderUsingDirectives2.cs:
--------------------------------------------------------------------------------
1 | // The following should not throw violations because there is no namespace declared in the file.
2 | using System;
3 | using Thread = System.Threading.Thread;
4 |
5 | interface IWhatever
6 | {
7 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/ElementOrder/ElementOrderUsingDirectives3.cs:
--------------------------------------------------------------------------------
1 | using System.Web.UI;
2 |
3 | [assembly: WebResource("foo.js", "application/x-javascript")]
4 |
5 | namespace CSharpAnalyzersTest.TestData.ElementOrder
6 | {
7 | class ElementOrderUsingDirectives3
8 | {
9 | }
10 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileContents/FileContentsMultipleClasses.cs:
--------------------------------------------------------------------------------
1 | // Tests that violations are thrown when there are more than one classes at the root level.
2 | namespace FileContentsMultipleClasses
3 | {
4 | public interface Interface1
5 | {
6 | }
7 |
8 | public struct Struct1
9 | {
10 | }
11 |
12 | public class Class1
13 | {
14 | }
15 |
16 | public class Class2
17 | {
18 | }
19 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileContents/FileContentsMultipleClassesNoNamespace.cs:
--------------------------------------------------------------------------------
1 | // Tests that violations are thrown when there are more than one classes at the root level, with no namespace.
2 | public class FileContentsMultipleClassesNoNamespace1
3 | {
4 | }
5 |
6 | public class FileContentsMultipleClassesNoNamespace2
7 | {
8 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileContents/FileContentsMultipleNamespaces.cs:
--------------------------------------------------------------------------------
1 | // Tests that violations are thrown when there are more than one namespaces
2 | namespace FileContentsMultipleNamespaces1
3 | {
4 | }
5 |
6 | namespace FileContentsMultipleNamespaces2
7 | {
8 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileContents/FileContentsPartialClasses.cs:
--------------------------------------------------------------------------------
1 | // Tests that no violations are thrown when there are two partial classes of the same type in a file.
2 | namespace FileContentsPartialClass
3 | {
4 | public partial class Class1
5 | {
6 | }
7 |
8 | public partial class Class1
9 | {
10 | }
11 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileContents/FileContentsPartialClassesDifferentTypes.cs:
--------------------------------------------------------------------------------
1 | // Tests that a violation is thrown when there are two partial classes of different types in the file.
2 | namespace FileContentsPartialClassDifferentTypes
3 | {
4 | public partial class Class1
5 | {
6 | }
7 |
8 | public partial class Class2
9 | {
10 | }
11 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileContents/FileContentsSingleClass.cs:
--------------------------------------------------------------------------------
1 | // Tests that no violations are thrown when there is only a single class in the file.
2 | namespace FileContentsSingleClass
3 | {
4 | public interface Interface1
5 | {
6 | }
7 |
8 | public struct Struct1
9 | {
10 | }
11 |
12 | public class Class1
13 | {
14 | public class SubClass1
15 | {
16 | }
17 |
18 | public class SubClass2
19 | {
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileContents/FileContentsSingleNamespace.cs:
--------------------------------------------------------------------------------
1 | // Tests that violations are thrown when there are more than one namespaces
2 | namespace FileContentsSingleNamespace
3 | {
4 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersAutoGenerated.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersAutoGenerated2.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersAutoGeneratedWithDefine.cs:
--------------------------------------------------------------------------------
1 | #define Yo
2 | //
3 | using System;
4 |
5 | // This class contains style violations which should not appear because of the header.
6 | public class Yo
7 | {
8 | public void Method(int x)
9 | {
10 | int x = 0;
11 | }
12 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersAutoGeneratedWithPragma1.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable 1591
2 | //
3 | using System;
4 |
5 | // This class contains style violations which should not appear because of the header.
6 | public class Yo
7 | {
8 | public void Method(int x)
9 | {
10 | int x = 0;
11 | }
12 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersAutoGeneratedWithPragma2.cs:
--------------------------------------------------------------------------------
1 |
2 | #pragma warning disable 1591
3 |
4 | //
5 | using System;
6 |
7 | // This class contains style violations which should not appear because of the header.
8 | public class Yo
9 | {
10 | public void Method(int x)
11 | {
12 | int x = 0;
13 | }
14 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersAutoGeneratedWithPragma3.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable 1591
2 |
3 | //
4 |
5 | using System;
6 |
7 | // This class contains style violations which should not appear because of the header.
8 | public class Yo
9 | {
10 | public void Method(int x)
11 | {
12 | int x = 0;
13 | }
14 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersEmptyCompany.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersEmptyFile.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersEmptyFile.cs
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersEmptyFilename.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersEmptySummary.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | //
5 | //
6 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersExtendedHeader.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersExtraTags.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | // This is a summary
5 | // John Doe
6 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersInvalidFilename.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
5 |
6 | namespace A
7 | {
8 | public class B
9 | {
10 | }
11 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersInvalidXml.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersMissingCopyright.cs:
--------------------------------------------------------------------------------
1 | //
2 | //
3 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersMissingCopyrightTag.cs:
--------------------------------------------------------------------------------
1 | // This is the summary
2 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersMissingFilename.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersMissingSummary.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersMissingWithLeadingSpace.cs:
--------------------------------------------------------------------------------
1 |
2 |
3 | using System;
4 |
5 | namespace FileHeadersMissing
6 | {
7 | public class Class1
8 | {
9 | }
10 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersNormalHeader.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersNormalHeaderExtraSpaces.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersNormalHeaderLeadingSpaces.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersNormalHeaderNoSpaces.cs:
--------------------------------------------------------------------------------
1 | //
2 | //Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersNormalHeaderTabs.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersSingleLineHeader.cs:
--------------------------------------------------------------------------------
1 | // Copyright
2 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidAspxStyle.aspx.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // StyleCop
4 | //
5 | //
6 | // Raises SA1649: The file attribute in the file header's copyright tag must contain the name of the first type in the file.
7 | //
8 | // --------------------------------------------------------------------------------------------------------------------
9 |
10 | namespace Scratch
11 | {
12 | ///
13 | /// Raises SA1649: The file attribute in the file header's copyright tag must contain the name of the first type in the file.
14 | ///
15 | public partial class FileHeadersValidAspxStyle
16 | {
17 | }
18 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidDingbatItems{TKey,TValue}.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // StyleCop
4 | //
5 | //
6 | //
7 | // --------------------------------------------------------------------------------------------------------------------
8 |
9 | namespace ConsoleApplication5
10 | {
11 | using System.Collections.Generic;
12 | using System.Xml.Serialization;
13 |
14 | public class FileHeadersValidDingbatItems : List>, IXmlSerializable where TValue : class
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidFilename.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 |
5 | namespace CSharpAnalyzersTest.TestData.FileHeaders
6 | {
7 | class FileHeadersValidFilename
8 | {
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidGenerics.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 |
5 | namespace CSharpAnalyzersTest.TestData.FileHeaders
6 | {
7 | class FileHeadersValidGenerics
8 | {
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidGenerics{T}.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 |
5 | namespace CSharpAnalyzersTest.TestData.FileHeaders
6 | {
7 | class FileHeadersValidGenerics
8 | {
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidIGenericContravariant{T}.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // StyleCop
4 | //
5 | //
6 | //
7 | // --------------------------------------------------------------------------------------------------------------------
8 |
9 | namespace Scratch
10 | {
11 | ///
12 | ///
13 | ///
14 | /// The type in the example.
15 | ///
16 | public interface FileHeadersValidIGenericContravariant
17 | {
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidIGenericCovariant{T}.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // StyleCop
4 | //
5 | //
6 | //
7 | // --------------------------------------------------------------------------------------------------------------------
8 |
9 | namespace Scratch
10 | {
11 | ///
12 | ///
13 | ///
14 | /// The type in the example.
15 | ///
16 | public interface FileHeadersValidIGenericCovariant
17 | {
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidPartial.Nested.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // StyleCop
4 | //
5 | //
6 | // A nested class within a partial class.
7 | //
8 | // --------------------------------------------------------------------------------------------------------------------
9 |
10 | namespace Scratch
11 | {
12 | ///
13 | /// A partial class
14 | ///
15 | public partial class FileHeadersValidPartial
16 | {
17 | ///
18 | /// A nested class.
19 | ///
20 | private sealed class Nested
21 | {
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidSummary.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 | // This is the summary.
5 | using System;
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidWithEnumAndParam.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // StyleCop
4 | //
5 | //
6 | // A delegate.
7 | //
8 | // --------------------------------------------------------------------------------------------------------------------
9 |
10 | namespace CSharpAnalyzersTest.TestData.FileHeaders
11 | {
12 | ///
13 | /// A delegate.
14 | ///
15 | ///
16 | /// A value indicating whether the delegate succeeded.
17 | ///
18 | public delegate bool FileHeadersValidWithEnumAndParam(int x);
19 | }
20 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersValidWithEnumFirst.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation. All rights reserved.
3 | //
4 |
5 | namespace CSharpAnalyzersTest.TestData.FileHeaders
6 | {
7 | public enum MyEnum
8 | {
9 | }
10 |
11 | public class FileHeadersValidWithEnumFirst
12 | {
13 | public MyEnum Example { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/FileHeadersWhitespaceFile.cs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/Global.asax.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) All rights reserved.
3 | //
4 |
5 | namespace CSharpAnalyzersTest.TestData.FileHeaders
6 | {
7 | class Class1
8 | {
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/FileHeaders/IFileHeadersValidMultipleTypes.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) ...
3 | //
4 |
5 | namespace CSharpAnalyzersTest.TestData.FileHeaders
6 | {
7 | using System;
8 | using System.Diagnostics.Contracts;
9 |
10 | [type: ContractClass(typeof(IFileHeadersValidMultipleTypesContract))]
11 | public interface IFileHeadersValidMultipleTypes
12 | {
13 | }
14 |
15 | [type: ContractClassFor(typeof(IFileHeadersValidMultipleTypes))]
16 | internal abstract class IFileHeadersValidMultipleTypesContract : IFileHeadersValidMultipleTypes
17 | {
18 | }
19 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile1.cs:
--------------------------------------------------------------------------------
1 |
2 | // This file has 1 blank line with no whitespace on it at the start
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 |
8 | namespace CSharpAnalyzersTest.TestData.LineSpacing
9 | {
10 | class BlankLinesAtStartAndEndOfFile1
11 | {
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile10.cs:
--------------------------------------------------------------------------------
1 | #if !DEBUG
2 |
3 | namespace A
4 | {
5 | }
6 | #endif
7 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile2.cs:
--------------------------------------------------------------------------------
1 |
2 | // This file has 1 blank line with whitespace on it at the start
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 |
8 | namespace CSharpAnalyzersTest.TestData.LineSpacing
9 | {
10 | class BlankLinesAtStartAndEndOfFile2
11 | {
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile3.cs:
--------------------------------------------------------------------------------
1 |
2 |
3 | // This file has 2 blank line with no whitespace on it at the start
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 | using System.Text;
8 |
9 | namespace CSharpAnalyzersTest.TestData.LineSpacing
10 | {
11 | class BlankLinesAtStartAndEndOfFile3
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile4.cs:
--------------------------------------------------------------------------------
1 |
2 |
3 | // This file has 2 blank lines with whitespace on it at the start
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 | using System.Text;
8 |
9 | namespace CSharpAnalyzersTest.TestData.LineSpacing
10 | {
11 | class BlankLinesAtStartAndEndOfFile4
12 | {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile5.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace CSharpAnalyzersTest.TestData.LineSpacing
7 | {
8 | class BlankLinesAtStartAndEndOfFile5
9 | {
10 | }
11 | }
12 | // This line has a CR at the end of this line and so is OK
13 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile6.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace CSharpAnalyzersTest.TestData.LineSpacing
7 | {
8 | class BlankLinesAtStartAndEndOfFile6
9 | {
10 | }
11 | }
12 | // This file has 2 blank lines at the end after this one
13 |
14 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile7.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace CSharpAnalyzersTest.TestData.LineSpacing
7 | {
8 | class BlankLinesAtStartAndEndOfFile7
9 | {
10 | }
11 | }
12 | // This file has 2 blank lines at the end after this one with whitespace on the first
13 |
14 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile8.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace CSharpAnalyzersTest.TestData.LineSpacing
7 | {
8 | class BlankLinesAtStartAndEndOfFile8
9 | {
10 | }
11 | }
12 | // This file has 2 blank lines at the end after this one with whitespace on both
13 |
14 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/BlankLinesAtStartAndEndOfFile9.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 |
3 | [assembly: AssemblyTitle("Example " +
4 | "Assembly")]
5 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/LineSpacingBetweenAssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 |
3 | [assembly: AssemblyTitle("CSharpAnalyzersTest")]
4 | [assembly: AssemblyDescription("")]
5 | [assembly: AssemblyConfiguration("")]
6 | [assembly: AssemblyCompany("")]
7 | [assembly: AssemblyProduct("CSharpAnalyzersTest")]
8 | [assembly: AssemblyCopyright("MS-PL")]
9 | [assembly: AssemblyTrademark("")]
10 | [assembly: AssemblyCulture("")]
11 | [assembly: AssemblyDescription("Example " +
12 | "Description")]
13 | [assembly: AssemblyTitle("Example " +
14 | "Assembly")]
15 |
16 | namespace CSharpAnalyzersTest.TestData.LineSpacing
17 | {
18 | class LineSpacingBetweenAssemblyAttributes
19 | {
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/LineSpacingFileHeaderNoBlankLines.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 | namespace MS.StyleCop.CSharpParserTest
7 | {
8 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/LineSpacingFileHeaderOneBlankLine.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace MS.StyleCop.CSharpParserTest
8 | {
9 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/LineSpacingFileHeaderTwoBlankLines.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 |
8 | namespace MS.StyleCop.CSharpParserTest
9 | {
10 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/LineSpacing/LineSpacingMultipleBlankLines.cs:
--------------------------------------------------------------------------------
1 | #region Namespaces
2 |
3 | namespace MultipleBlankLines1
4 | {
5 | public class Class1
6 | {
7 | public void Method1()
8 | {
9 | // comment
10 |
11 | // comment
12 |
13 |
14 | // comment
15 |
16 |
17 |
18 | // comment
19 |
20 | while (true)
21 | {
22 | int i = 0;
23 | int x = 0;
24 | }
25 |
26 | while (true)
27 | {
28 | int i = 0;
29 |
30 | int x = 0;
31 | }
32 |
33 | while (true)
34 | {
35 | int i = 0;
36 |
37 |
38 | int x = 0;
39 | }
40 |
41 | while (true)
42 | {
43 | int i = 0;
44 |
45 |
46 |
47 | int x = 0;
48 | }
49 | }
50 | }
51 | }
52 |
53 |
54 | #endregion Namespaces
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/DelegateDeclarationClosingParenthesisPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace DelegateDeclarationClosingParenthesisPlacement1
2 | {
3 | using System;
4 |
5 | public class NormalDelegates1
6 | {
7 | public delegate void Delegate1(
8 |
9 | );
10 |
11 | public delegate void Delegate2(int x
12 | );
13 |
14 | public delegate void Delegate3(
15 | int x
16 | );
17 |
18 | public delegate void Delegate4(
19 | int x,
20 | int y
21 | );
22 |
23 | public delegate void Delegate5(
24 | int x,
25 | int y
26 |
27 | );
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/DelegateDeclarationCommaPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace DelegateDeclarationCommaPlacement1
2 | {
3 | using System;
4 |
5 | public class NormalDelegates1
6 | {
7 | public delegate void Delegate1(int x
8 | , int y);
9 |
10 | public delegate void Delegate2(int x
11 | ,
12 | int y);
13 |
14 | public delegate void Delegate3(
15 | int x
16 | , int y);
17 |
18 | public delegate void Delegate4(
19 | int x
20 | ,
21 | int y
22 | ,
23 | int z);
24 |
25 | public delegate void Delegate5(
26 | int x
27 |
28 | ,int y);
29 |
30 | public delegate void Delegate6(
31 | int x
32 |
33 | ,
34 | int y);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/DelegateDeclarationOpeningParenthesisPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace DelegateDeclarationOpeningParenthesisPlacement1
2 | {
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | public class NormalDelegates1
8 | {
9 | public delegate void Delegate1
10 | ();
11 |
12 | public delegate void Delegate2
13 | (
14 | );
15 |
16 | public delegate void Delegate3
17 | (int x);
18 |
19 | public delegate void Delegate4
20 | (
21 | int x);
22 |
23 | public delegate void Delegate5
24 |
25 | (int x);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/DelegateDeclarationParameterFollowsComma.cs:
--------------------------------------------------------------------------------
1 | namespace DelegateDeclarationParameterFollowsComma1
2 | {
3 | using System;
4 |
5 | public class NormalDelegates1
6 | {
7 | public delegate void Delegate1(int x,
8 |
9 | int y);
10 |
11 | public delegate void Delegate2(
12 | int x,
13 |
14 | int y);
15 |
16 | public delegate void Delegate3(
17 | int x,
18 |
19 |
20 | int y);
21 |
22 | public delegate void Delegate4(
23 | int x,
24 | int y,
25 |
26 | int z);
27 |
28 | public delegate void Delegate5(
29 | int x,
30 | int y,
31 |
32 |
33 | int z);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/DelegateDeclarationParameterListStart.cs:
--------------------------------------------------------------------------------
1 | namespace DelegateDeclarationParameterListStart1
2 | {
3 | using System;
4 |
5 | public class NormalDelegates1
6 | {
7 | public delegate void Delegate1(
8 |
9 | int x);
10 |
11 | public delegate void Delegate2(
12 |
13 | int x, int y);
14 |
15 | public delegate void Delegate3(
16 |
17 | int x,
18 | int y);
19 |
20 | public delegate void Delegate4(
21 |
22 |
23 | int x);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/DelegateDeclarationSplitParameterMustStartOnLineAfterDeclaration.cs:
--------------------------------------------------------------------------------
1 | namespace DelegateDeclarationSplitParameterMustStartOnLineAfterDeclaration1
2 | {
3 | using System;
4 |
5 | public class NormalDelegates1
6 | {
7 | public delegate void Delegate1(int x,
8 | int y);
9 |
10 | public delegate void Delegate2(int x,
11 | int y, int z);
12 |
13 | public delegate void Delegate3(int x,
14 | int y,
15 | int z);
16 |
17 | public delegate void Delegate4(int x, int y,
18 | int z);
19 |
20 | public delegate void Delegate5(int x, int y,
21 | int z, int a);
22 |
23 | public delegate void Delegate6(int x, int y,
24 | int z,
25 | int a);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/IndexerDeclarationClosingParenthesisPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace IndexerDeclarationClosingParenthesisPlacement1
2 | {
3 | using System;
4 |
5 | public class NormalMethods1
6 | {
7 | public bool this[int x
8 | ]
9 | {
10 | get { return true; }
11 | }
12 |
13 | public bool this[
14 | int x
15 | ]
16 | {
17 | get { return true; }
18 | }
19 |
20 | public bool this[
21 | int x,
22 | int y
23 | ]
24 | {
25 | get { return true; }
26 |
27 | }
28 |
29 | public bool this[
30 | int x,
31 | int y
32 |
33 | ]
34 | {
35 | get { return true; }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/IndexerDeclarationOpeningParenthesisPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace IndexerDeclarationOpeningParenthesisPlacement1
2 | {
3 | using System;
4 |
5 | public class NormalMethods1
6 | {
7 | public bool this
8 | [int x]
9 | {
10 | get { return true; }
11 | }
12 |
13 | public bool this
14 | [
15 | short x]
16 | {
17 | get { return true; }
18 | }
19 |
20 | public bool this
21 |
22 | [long x]
23 | {
24 | get { return true; }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/IndexerDeclarationParameterListStart.cs:
--------------------------------------------------------------------------------
1 | namespace IndexerDeclarationParameterListStart1
2 | {
3 | using System;
4 |
5 | public class NormalMethods1
6 | {
7 | public bool this[
8 |
9 | int[, , ] x]
10 | {
11 | get { return true; }
12 | }
13 |
14 | public bool this[
15 |
16 | short x, int y]
17 | {
18 | get { return true; }
19 | }
20 |
21 | public bool this[
22 |
23 | long x,
24 | /* this is a comment
25 | */
26 | // This too
27 | int y]
28 | {
29 | get { return true; }
30 | }
31 |
32 | public bool this[
33 |
34 |
35 | double x]
36 | {
37 | get { return true; }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/IndexerDeclarationSpanningMultipleLines.cs:
--------------------------------------------------------------------------------
1 | namespace IndexerDeclarationSpanningMultipleLines1
2 | {
3 | using System;
4 |
5 | public class NormalMethods1
6 | {
7 | public bool this[int x, int
8 | y]
9 | {
10 | get { return true; }
11 | }
12 |
13 | public bool this[
14 | /*comment
15 | * */
16 | short x,
17 | int
18 | y]
19 | {
20 | get { return true; }
21 | }
22 |
23 | public bool this[long x, int y, int
24 | z]
25 | {
26 | get { return true; }
27 | }
28 |
29 | public bool this[
30 | double x,
31 | [System.Runtime.InteropServices.In,
32 | System.Runtime.InteropServices.Out]
33 | int[,] y,
34 | int
35 | z]
36 | {
37 | get { return true; }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/InterfaceMethodDeclarationClosingParenthesisPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace InterfaceMethodDeclarationClosingParenthesisPlacement1
2 | {
3 | using System;
4 |
5 | #region Normal Methods
6 |
7 | public interface NormalMethods1
8 | {
9 | // Invalid placement.
10 | public void Method5(
11 |
12 | );
13 |
14 | public void Method6(int x
15 | );
16 |
17 | public void Method7(
18 | int x
19 | );
20 |
21 | public void Method8(
22 | int x,
23 | int y
24 | );
25 |
26 | public void Method9(
27 | int x,
28 | int y
29 |
30 | );
31 | }
32 |
33 | #endregion Normal Methods
34 | }
35 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/InterfaceMethodDeclarationCommaPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace InterfaceMethodDeclarationCommaPlacement1
2 | {
3 | using System;
4 |
5 | #region Normal Methods
6 |
7 | public interface NormalMethods1
8 | {
9 | // Invalid Placement
10 | public void Method7(int x
11 | , int y);
12 |
13 | public void Method8(int x
14 | ,
15 | int y);
16 |
17 | public void Method9(
18 | int x
19 | , int y);
20 |
21 | public void Method10(
22 | int x
23 | ,
24 | int y
25 | ,
26 | int z);
27 |
28 | public void Method11(
29 | int x
30 |
31 | ,int y);
32 |
33 | public void Method12(
34 | int x
35 |
36 | ,
37 | int y);
38 | }
39 |
40 | #endregion Normal Methods
41 | }
42 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/InterfaceMethodDeclarationOpeningParenthesisPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace InterfaceMethodDeclarationOpeningParenthesisPlacement1
2 | {
3 | using System;
4 |
5 | #region Normal Methods
6 |
7 | public interface NormalMethods1
8 | {
9 | // Invalid placement.
10 | public void Method4
11 | ();
12 |
13 | public void Method5
14 | (
15 | );
16 |
17 | public void Method6
18 | (int x);
19 |
20 | public void Metohd7
21 | (
22 | int x);
23 |
24 | public void Method8
25 |
26 | (int x);
27 | }
28 |
29 | #endregion Normal Methods
30 | }
31 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/InterfaceMethodDeclarationParameterFollowsComma.cs:
--------------------------------------------------------------------------------
1 | namespace InterfaceMethodDeclarationParameterFollowsComma1
2 | {
3 | using System;
4 |
5 | #region Normal Methods
6 |
7 | public interface NormalMethods1
8 | {
9 | // Invalid placement
10 | public void Method8(int x,
11 |
12 | int y);
13 |
14 | public void Method9(
15 | int x,
16 |
17 | int y);
18 |
19 | public void Method10(
20 | int x,
21 |
22 |
23 | int y);
24 |
25 | public void Method11(
26 | int x,
27 | int y,
28 |
29 | int z);
30 |
31 | public void Method12(
32 | int x,
33 | int y,
34 |
35 |
36 | int z);
37 | }
38 |
39 | #endregion Normal Methods
40 | }
41 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/InterfaceMethodDeclarationParameterListStart.cs:
--------------------------------------------------------------------------------
1 | namespace InterfaceMethodDeclarationParameterListStart1
2 | {
3 | using System;
4 |
5 | #region Normal Methods
6 |
7 | public interface NormalMethods1
8 | {
9 | // Invalid placement
10 | public void Method6(
11 |
12 | int x);
13 |
14 | public void Method7(
15 |
16 | int x, int y);
17 |
18 | public void Method8(
19 |
20 | int x,
21 | int y);
22 |
23 | public void Method9(
24 |
25 |
26 | int x);
27 | }
28 |
29 | #endregion Normal Methods
30 | }
31 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/MethodParameters/InterfaceMethodDeclarationSplitParameterMustStartOnLineAfterDeclaration.cs:
--------------------------------------------------------------------------------
1 | namespace InterfaceMethodDeclarationSplitParameterMustStartOnLineAfterDeclaration1
2 | {
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | #region Normal Methods
8 |
9 | public interface NormalMethods1
10 | {
11 | // Invalid placement.
12 | public void Method1(int x,
13 | int y);
14 |
15 | public void Method2(int x,
16 | int y, int z);
17 |
18 | public void Method3(int x,
19 | int y,
20 | int z);
21 |
22 | public void Method4(int x, int y,
23 | int z);
24 |
25 | public void Method5(int x, int y,
26 | int z, int a);
27 |
28 | public void Method6(int x, int y,
29 | int z,
30 | int a);
31 | }
32 |
33 | #endregion Normal Methods
34 | }
35 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Naming/ValidHungarian.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Visual-Stylecop/Visual-StyleCop/dd9800f39d8023e3b86f536ad0034bd7b0052f88/Project/Test/CSharpAnalyzersTest/TestData/Naming/ValidHungarian.cs
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Parenthesis/ConditionalLogicalParenthesis.cs:
--------------------------------------------------------------------------------
1 | namespace Parenthesis1
2 | {
3 | using System;
4 |
5 | public class Class1
6 | {
7 | public void Method()
8 | {
9 | // Invalid
10 | bool a = 2 != this.Whatever || this.Whatever.Something() - 2 > 0 && x <= 3;
11 |
12 | // Valid
13 | bool b = (2 != this.Whatever || this.Whatever.Something() - 2 > 0) && x <= 3;
14 |
15 | // Valid
16 | bool c = 2 != this.Whatever || (this.Whatever.Something() - 2 > 0 && x <= 3);
17 |
18 | // Valid
19 | bool d = 2 != this.Whatever || this.Whatever.Something() - 2 > 0 || x <= 3;
20 |
21 | // Valid
22 | bool e = 2 != this.Whatever && this.Whatever.Something() - 2 > 0 && x <= 3;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Regions/DoNotPlaceRegionsWithinElements.cs:
--------------------------------------------------------------------------------
1 | #region Region1
2 | namespace DoNotUseRegionsWithinElements
3 | {
4 | public class Class1
5 | {
6 | #region Region2
7 | public bool Method()
8 | {
9 | #region Region3
10 | #endregion
11 |
12 | #region Region3
13 | int x = 0;
14 | #endregion
15 | #region Region4
16 |
17 | #region XXX generated code
18 | #region Region within generated code
19 | #endregion
20 | #endregion
21 | }
22 | #endregion
23 | #endregion
24 | }
25 | }
26 | #endregion
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Regions/DoNotUseRegions.cs:
--------------------------------------------------------------------------------
1 | #region Region1
2 | namespace DoNotUseRegionsWithinElements
3 | {
4 | public class Class1
5 | {
6 | #region Region2
7 | public bool Method()
8 | {
9 | #region Region3
10 | #endregion
11 |
12 | #region Region3
13 | int x = 0;
14 | #endregion
15 | #region Region4
16 |
17 | #region XXX generated code
18 | #region Region within generated code
19 | #endregion
20 | #endregion
21 | }
22 | #endregion
23 | #endregion
24 | }
25 | }
26 | #endregion
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/AttributeBrackets.cs:
--------------------------------------------------------------------------------
1 | namespace CSharpAnalyzersTest.TestData.Spacing
2 | {
3 | using System.ComponentModel;
4 |
5 | internal class AttributeBrackets
6 | {
7 | ///
8 | /// Gets or sets a value indicating a Property.
9 | ///
10 | [
11 | Description("Description of property"),
12 | DefaultValue(typeof(int),"1"),
13 | Category("Category"),
14 | Browsable(true)
15 | ]
16 | public int Property1 { get; set; }
17 |
18 | ///
19 | /// Gets or sets a value indicating a Property.
20 | ///
21 | [ Description("Description of property"),
22 | DefaultValue(typeof(int),"1"),
23 | Category("Category"),
24 | Browsable(true) ]
25 | public int Property2 { get; set; }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/CloseSquareBracket.cs:
--------------------------------------------------------------------------------
1 | namespace CSharpAnalyzersTest.TestData.Spacing
2 | {
3 | class CloseSquareBracket
4 | {
5 | public class Class1
6 | {
7 | private string[]x; // invalid
8 |
9 | private string[] y; // valid
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/Colons.cs:
--------------------------------------------------------------------------------
1 |
2 | using System.Reflection;
3 |
4 | [assembly:AssemblyTitle("StyleCopTests")]
5 | [assembly : AssemblyTitle("StyleCopTests")]
6 | [assembly :AssemblyTitle("StyleCopTests")]
7 | [assembly: AssemblyTitle("StyleCopTests")]
8 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/DereferenceSymbol.cs:
--------------------------------------------------------------------------------
1 | namespace CSharpAnalyzersTest.TestData.Spacing
2 | {
3 | using System.Security;
4 |
5 | class DereferenceSymbol
6 | {
7 | public static void Main(string[] args)
8 | {
9 | var password = "Password";
10 | unsafe
11 | {
12 | fixed (char* passwordPointer = password.ToCharArray()) // valid
13 | {
14 | var securePassword = new SecureString(passwordPointer, password.Length);
15 | }
16 |
17 | fixed (char * passwordPointer = password.ToCharArray()) // not valid
18 | {
19 | var securePassword = new SecureString(passwordPointer, password.Length);
20 | }
21 | }
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/NegativeSymbol.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace CSharpAnalyzersTest.TestData.Spacing
4 | {
5 | internal class NegativeSymbol
6 | {
7 | private int Method1(int paramName)
8 | {
9 | List list = new List(this.Method1( -42));
10 | return list[ -42];
11 | }
12 |
13 | private int Method2(int paramName)
14 | {
15 | List list = new List(this.Method1(-42));
16 | return list[-42];
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/OpenSquareBracket.cs:
--------------------------------------------------------------------------------
1 | namespace CSharpAnalyzersTest.TestData.Spacing
2 | {
3 | class OpenSquareBracket
4 | {
5 | public void Foo1()
6 | {
7 | string [] test = new string[10](); // Invalid spacing
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/PositiveSymbol.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace CSharpAnalyzersTest.TestData.Spacing
4 | {
5 | internal class PositiveSymbol
6 | {
7 | private int Method1(int paramName)
8 | {
9 | List list = new List(this.Method1( +42));
10 | return list[ +42];
11 | }
12 |
13 | private int Method2(int paramName)
14 | {
15 | List list = new List(this.Method1(+42));
16 | return list[+42];
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Spacing/UnarySymbols.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace CSharpAnalyzersTest.TestData.Spacing
7 | {
8 | class UnarySymbols
9 | {
10 | public void Method1()
11 | {
12 | bool boolVar = false;
13 | if ( !boolVar) // invalid
14 | {
15 | }
16 |
17 | Debug.Assert(!someCondition, "Some text"); // valid
18 | Debug.Assert( !someCondition, "Some text"); // invalid
19 |
20 | //valid
21 | Debug.Assert(
22 | !someCondition,
23 | "Some text");
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Statements/StatementsMultipleStatementsOnOneLine.cs:
--------------------------------------------------------------------------------
1 | namespace StatementsMultipleStatementsOnOneLine
2 | {
3 | public class Class1
4 | {
5 | public bool Method1()
6 | {
7 | int a = 0;
8 | int b = 0; int c = 0;
9 | int d = 0; int e = 0; int f = 0;
10 |
11 | if (true) return false; if (false) return true;
12 |
13 | if (true) { return false; } if (false) { return true; }
14 |
15 | if (true)
16 | { return false; } if (false) { return true; }
17 |
18 | if (true)
19 | {
20 | return false;
21 | } if (false) { return true; }
22 |
23 | if (true)
24 | {
25 | return false;
26 | } if (false)
27 | {
28 | return true;
29 | }
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/Tabs/Tabs.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace Tabs1
3 | {
4 | using System;
5 | using System.Collections;
6 |
7 | public class SpacesClass
8 | {
9 | public void Valid()
10 | {
11 | int x, y;
12 | }
13 | }
14 |
15 | public class TabsClass
16 | {
17 | public void Invalid()
18 | {
19 | int x, y;
20 | }
21 | }
22 | }
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/UnnecessaryCode/UnnecessaryCodeLockStatement.cs:
--------------------------------------------------------------------------------
1 | namespace UnnecessaryLock
2 | {
3 | class Class1
4 | {
5 | public void NecessaryLock()
6 | {
7 | lock (this)
8 | {
9 | int x = 0;
10 | }
11 | }
12 |
13 | public void UnnecessaryLock()
14 | {
15 | lock (this)
16 | {
17 | }
18 |
19 | lock (this)
20 | {
21 | // Contains comment
22 | /* Contains Multi-line comment */
23 | #region Contains Region
24 | #endregion
25 | }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/UnnecessaryCode/UnnecessaryCodeStaticConstructor.cs:
--------------------------------------------------------------------------------
1 | namespace UnnecessaryLock
2 | {
3 | class Class1
4 | {
5 | // Necessary since not static.
6 | public Class1()
7 | {
8 | }
9 |
10 | // Necessary since not static.
11 | public Class1(int x)
12 | {
13 | x = 2;
14 | }
15 |
16 | // Necessary since body contains code.
17 | static Class1()
18 | {
19 | int x;
20 | }
21 | }
22 |
23 | class Class2
24 | {
25 | // Unnecessary since body is empty.
26 | static Class2()
27 | {
28 | }
29 | }
30 |
31 | class Class3
32 | {
33 | // Unnecessary since body contains no code.
34 | static Class3()
35 | {
36 |
37 | // Contains comment
38 | /* Contains Multi-line comment */
39 | #region Contains Region
40 | #endregion
41 |
42 | }
43 | }
44 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/TestData/UnnecessaryCode/UnnecessaryCodeUnsafeStatement.cs:
--------------------------------------------------------------------------------
1 | namespace UnnecessaryUnsafe
2 | {
3 | class Class1
4 | {
5 | public void NecessaryUnsafe()
6 | {
7 | unsafe
8 | {
9 | int x = 0;
10 | }
11 | }
12 |
13 | public void UnnecessaryUnsafe()
14 | {
15 | unsafe
16 | {
17 | }
18 |
19 | unsafe
20 | {
21 | // Contains comment
22 | /* Contains Multi-line comment */
23 | #region Contains Region
24 | #endregion
25 | }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpAnalyzersTest/bin/Debug/TestData/FileHeaders/FileHeadersValidAspxStyle.aspx.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // StyleCop
4 | //
5 | //
6 | // Raises SA1649: The file attribute in the file header's copyright tag must contain the name of the first type in the file.
7 | //
8 | // --------------------------------------------------------------------------------------------------------------------
9 |
10 | namespace Scratch
11 | {
12 | ///
13 | /// Raises SA1649: The file attribute in the file header's copyright tag must contain the name of the first type in the file.
14 | ///
15 | public partial class FileHeadersValidAspxStyle
16 | {
17 | }
18 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpParserSampleFilesTest/Settings.StyleCop:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | False
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Project/Test/CSharpParserSampleFilesTest/TestData/CodeBoxBugs/11227.cs:
--------------------------------------------------------------------------------
1 | class Program
2 | {
3 | public fixed byte name[SizeofShortName];
4 | }
5 |
--------------------------------------------------------------------------------
/Project/Test/CSharpParserSampleFilesTest/TestData/CodeBoxBugs/11519.cs:
--------------------------------------------------------------------------------
1 | public class C
2 | {
3 | public void M()
4 | {
5 | List.Enumerator myEnumerator = null;
6 | }
7 | }
--------------------------------------------------------------------------------
/Project/Test/CSharpParserSampleFilesTest/TestData/CodeBoxBugs/1409.cs:
--------------------------------------------------------------------------------
1 | class Program
2 | {
3 | static void Main(string[] args)
4 | {
5 | int i;
6 | do
7 | i = 1;
8 | while (true);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Project/Test/CSharpParserSampleFilesTest/TestData/CodeBoxBugs/16164.cs:
--------------------------------------------------------------------------------
1 | class Program
2 | {
3 | public static int Run(
4 | string[] testCommandline,
5 | string ipadArguments,
6 | TimeSpan compilationTimeout,
7 | int testCaseId,
8 | int measurementId,
9 | string provider = "{2313E0F5-99DD-4d48-BFBA-50C1E3F5A524}" /* Intellipad Core */,
10 | string eventId = "0x0008" /* TraceTextInputReceived */ )
11 | {
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Project/Test/CSharpParserSampleFilesTest/TestData/CodeBoxBugs/16612.cs:
--------------------------------------------------------------------------------
1 | public class Class1
2 | {
3 | ///
4 | /// Secondary availability replica pairs.
6 | /// ]]>
7 | ///
8 | public void X
9 | {
10 | get { throw new NotImplementedException(); }
11 | }
12 | }
13 |
14 |
--------------------------------------------------------------------------------
/Project/Test/CSharpParserSampleFilesTest/TestData/CodeBoxBugs/1721.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation. All rights reserved.
4 | //
5 | // X
6 | //-----------------------------------------------------------------------
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace X
11 | {
12 | ///
13 | /// X
14 | ///
15 | class Y
16 | {
17 | ///
18 | /// X
19 | ///
20 | public void X()
21 | {
22 | List x = new List() { 1, 2 };
23 | List