-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDiagnosticId.cs
More file actions
150 lines (148 loc) · 4.98 KB
/
Copy pathDiagnosticId.cs
File metadata and controls
150 lines (148 loc) · 4.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// © 2019 Koninklijke Philips N.V. See License.md in the project root for license information.
namespace Philips.CodeAnalysis.Common
{
public enum DiagnosticId
{
None = 0,
TestMethodName = 2000,
EmptyXmlComments = 2001,
AssertAreEqual = 2003,
ExpectedExceptionAttribute = 2004,
TestContext = 2005,
NamespaceMatchFilePath = 2006,
AssertAreEqualTypesMatch = 2008,
AssertIsEqual = 2009,
AssertIsTrueParenthesis = 2010,
AvoidDescriptionAttribute = 2011,
TestHasTimeoutAttribute = 2012,
AvoidIgnoreAttribute = 2013,
AvoidOwnerAttribute = 2014,
TestHasCategoryAttribute = 2015,
AvoidTestInitializeMethod = 2016,
AvoidClassInitializeMethod = 2017,
AvoidClassCleanupMethod = 2018,
AvoidTestCleanupMethod = 2019,
AvoidThreadSleep = 2020,
AvoidInlineNew = 2021,
AvoidSuppressMessage = 2026,
AvoidStaticMethods = 2027,
CopyrightPresent = 2028,
AvoidPragma = 2029,
VariableNamingConventions = 2030,
AvoidTryParseWithoutCulture = 2031,
AvoidEmptyTypeInitializer = 2032,
TestMethodsMustBeInTestClass = 2034,
TestMethodsMustBePublic = 2036,
TestMethodsMustHaveUniqueNames = 2037,
TestClassesMustBePublic = 2038,
ServiceContractsMustHaveOperationContractAttributes = 2040,
AvoidMsFakes = 2041,
InitializeComponentMustBeCalledOnce = 2042,
DynamicKeywordProhibited = 2044,
AvoidStaticClasses = 2045,
AvoidPublicMemberVariables = 2047,
MockArgumentsMustMatchConstructor = 2048,
TestMethodsMustNotBeEmpty = 2050,
PreventUnnecessaryRangeChecks = 2051,
MockRaiseArgumentsMustMatchEvent = 2053,
MockRaiseArgumentCountMismatch = 2054,
AssertIsTrueLiteral = 2055,
AssertAreEqualLiteral = 2056,
AvoidNonConstStrings = 2057,
AvoidAssertConditionalAccess = 2058,
TestClassPublicMethodShouldBeTestMethod = 2059,
EnforceBoolNamingConvention = 2060,
EnforceRegions = 2061,
EnforceNonDuplicateRegion = 2064,
NonCheckedRegionMember = 2065,
LocksShouldBeReadonly = 2066,
NoNestedStringFormats = 2067,
GotoNotAllowed = 2068,
NoUnnecessaryStringFormats = 2069,
NoProtectedFields = 2070,
AvoidDuplicateCode = 2071,
EnforceEditorConfig = 2072,
ExtensionMethodsCalledLikeInstanceMethods = 2073,
DisallowDisposeRegistration = 2074,
AvoidAssemblyVersionChange = 2075,
AssertFail = 2076,
AvoidSwitchStatementsWithNoCases = 2077,
AvoidPrivateKeyProperty = 2078,
NamespacePrefix = 2079,
NoHardcodedPaths = 2080,
NoRegionsInMethods = 2081,
PositiveNaming = 2082,
AvoidPassByReference = 2083,
DontLockNewObject = 2084,
OrderPropertyAccessors = 2085,
AvoidTaskResult = 2086,
NoSpaceInFilename = 2087,
LimitPathLength = 2088,
AvoidAssignmentInCondition = 2089,
LogException = 2090,
ThrowInnerException = 2091,
LimitConditionComplexity = 2092,
PreferTuplesWithNamedFields = 2093,
PreferUsingNamedTupleField = 2094,
TestMethodsMustHaveValidReturnType = 2095,
AvoidAsyncVoid = 2096,
AvoidEmptyStatementBlock = 2097,
AvoidEmptyCatchBlock = 2098,
EnforceFileVersionIsSameAsPackageVersion = 2099,
AvoidPasswordField = 2100,
DereferenceNull = 2101,
XmlDocumentationShouldAddValue = 2102,
AvoidInvocationAsArgument = 2103,
EveryLinqStatementOnSeparateLine = 2104,
AlignNumberOfPlusAndMinusOperators = 2105,
AlignNumberOfMultiplyAndDivideOperators = 2106,
AlignNumberOfGreaterAndLessThanOperators = 2107,
AlignNumberOfGreaterAndLessThanOrEqualOperators = 2108,
AlignNumberOfShiftRightAndLeftOperators = 2109,
AlignNumberOfIncrementAndDecrementOperators = 2110,
ReduceCognitiveLoad = 2111,
AvoidOverridingWithNewKeyword = 2112,
MergeIfStatements = 2113,
AvoidEmptyStatement = 2114,
AvoidMultipleLambdasOnSingleLine = 2115,
AvoidArrayList = 2116,
AvoidUnnecessaryWhere = 2117,
AvoidMagicNumbers = 2118,
CastCompleteObject = 2119,
DocumentThrownExceptions = 2120,
ThrowInformationalExceptions = 2121,
AvoidExceptionsFromUnexpectedLocations = 2122,
PassSenderToEventHandler = 2123,
DocumentUnhandledExceptions = 2124,
AlignNumberOfPlusAndEqualOperators = 2125,
AvoidUsingParametersAsTempVariables = 2126,
AvoidChangingLoopVariables = 2127,
SplitMultiLineConditionOnLogicalOperator = 2128,
ReturnImmutableCollections = 2129,
AvoidImplementingFinalizers = 2130,
AlignFilenameAndClassName = 2131,
RemoveCommentedCode = 2132,
UnmanagedObjectsNeedDisposing = 2133,
SetPropertiesInAnyOrder = 2134,
NamespaceMatchAssemblyName = 2135,
AvoidDuplicateStrings = 2136,
RegexNeedsTimeout = 2137,
AvoidVoidReturn = 2138,
EnableDocumentationCreation = 2139,
AvoidExcludeFromCodeCoverage = 2140,
AvoidEmptyRegions = 2141,
AvoidCastToString = 2142,
AvoidAssemblyGetEntryAssembly = 2143,
AvoidIncorrectForLoopCondition = 2144,
AvoidStringFormatInInterpolatedString = 2145,
AvoidToStringOnString = 2146,
AvoidVariableNamedUnderscore = 2147,
AvoidProblematicUsingPatterns = 2149,
AvoidTodoComments = 2151,
AvoidUnnecessaryTypedDiscard = 2152,
AvoidUnusedToString = 2153,
AvoidUnlicensedPackages = 2155,
AvoidPkcsPaddingWithRsaEncryption = 2158,
AvoidUnnecessaryAttributeParentheses = 2159,
}
}