Skip to content

Commit 752ae4d

Browse files
committed
C#: Freeze quality queries in the security-and-quality suite.
1 parent c1c0a70 commit 752ae4d

File tree

1 file changed

+156
-2
lines changed

1 file changed

+156
-2
lines changed
Lines changed: 156 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,158 @@
11
- description: Security-and-quality queries for C#
22
- queries: .
3-
- apply: security-and-quality-selectors.yml
4-
from: codeql/suite-helpers
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
precision:
8+
- high
9+
- very-high
10+
tags contain:
11+
- security
12+
- include:
13+
kind:
14+
- problem
15+
- path-problem
16+
precision: medium
17+
problem.severity:
18+
- error
19+
- warning
20+
tags contain:
21+
- security
22+
- include:
23+
id:
24+
- cs/asp/response-write
25+
- cs/call-to-gc
26+
- cs/call-to-object-tostring
27+
- cs/call-to-obsolete-method
28+
- cs/call-to-unmanaged-code
29+
- cs/cast-from-abstract-to-concrete-collection
30+
- cs/cast-of-this-to-type-parameter
31+
- cs/catch-nullreferenceexception
32+
- cs/catch-of-all-exceptions
33+
- cs/chained-type-tests
34+
- cs/class-implements-icloneable
35+
- cs/class-missing-equals
36+
- cs/class-name-comparison
37+
- cs/class-name-matches-base-class
38+
- cs/coalesce-of-identical-expressions
39+
- cs/comparison-of-identical-expressions
40+
- cs/compilation-error
41+
- cs/compilation-message
42+
- cs/complex-block
43+
- cs/complex-condition
44+
- cs/constant-comparison
45+
- cs/constant-condition
46+
- cs/coupled-types
47+
- cs/dereferenced-value-is-always-null
48+
- cs/dereferenced-value-may-be-null
49+
- cs/diagnostics/extraction-errors
50+
- cs/diagnostics/successfully-extracted-files
51+
- cs/dispose-not-called-on-throw
52+
- cs/downcast-of-this
53+
- cs/empty-block
54+
- cs/empty-catch-block
55+
- cs/empty-collection
56+
- cs/empty-lock-statement
57+
- cs/equality-on-floats
58+
- cs/equals-on-arrays
59+
- cs/equals-on-unrelated-types
60+
- cs/equals-uses-as
61+
- cs/equals-uses-is
62+
- cs/expose-implementation
63+
- cs/extraction-error
64+
- cs/extraction-message
65+
- cs/field-masks-base-field
66+
- cs/gethashcode-is-not-defined
67+
- cs/impossible-array-cast
68+
- cs/inconsistent-compareto-and-equals
69+
- cs/inconsistent-equals-and-gethashcode
70+
- cs/inconsistent-lock-sequence
71+
- cs/index-out-of-bounds
72+
- cs/inefficient-containskey
73+
- cs/invalid-dynamic-call
74+
- cs/invalid-string-formatting
75+
- cs/linq/inconsistent-enumeration
76+
- cs/linq/missed-all
77+
- cs/linq/missed-cast
78+
- cs/linq/missed-oftype
79+
- cs/linq/missed-select
80+
- cs/linq/missed-where
81+
- cs/linq/useless-select
82+
- cs/local-not-disposed
83+
- cs/local-shadows-member
84+
- cs/lock-this
85+
- cs/locked-wait
86+
- cs/loss-of-precision
87+
- cs/mishandling-japanese-era
88+
- cs/misleading-indentation
89+
- cs/missed-readonly-modifier
90+
- cs/missed-ternary-operator
91+
- cs/missed-using-statement
92+
- cs/nested-if-statements
93+
- cs/nested-loops-with-same-variable
94+
- cs/non-short-circuit
95+
- cs/null-argument-to-equals
96+
- cs/path-combine
97+
- cs/recursive-equals-call
98+
- cs/recursive-operator-equals-call
99+
- cs/reference-equality-on-valuetypes
100+
- cs/reference-equality-with-object
101+
- cs/rethrown-exception-variable
102+
- cs/self-assignment
103+
- cs/simplifiable-boolean-expression
104+
- cs/static-field-written-by-instance
105+
- cs/string-concatenation-in-loop
106+
- cs/stringbuilder-creation-in-loop
107+
- cs/stringbuilder-initialized-with-character
108+
- cs/summary/lines-of-code
109+
- cs/telemetry/external-libs
110+
- cs/telemetry/extraction-information
111+
- cs/telemetry/supported-external-api
112+
- cs/telemetry/supported-external-api-sinks
113+
- cs/telemetry/supported-external-api-sources
114+
- cs/telemetry/supported-external-api-taint
115+
- cs/telemetry/unsupported-external-api
116+
- cs/test-for-negative-container-size
117+
- cs/too-many-ref-parameters
118+
- cs/type-test-of-this
119+
- cs/unchecked-cast-in-equals
120+
- cs/unmanaged-code
121+
- cs/unsafe-double-checked-lock
122+
- cs/unsafe-sync-on-field
123+
- cs/unsafe-year-construction
124+
- cs/unsynchronized-getter
125+
- cs/unsynchronized-static-access
126+
- cs/unused-collection
127+
- cs/unused-label
128+
- cs/unused-property-value
129+
- cs/useless-assignment-to-local
130+
- cs/useless-cast-to-self
131+
- cs/useless-gethashcode-call
132+
- cs/useless-if-statement
133+
- cs/useless-tostring-call
134+
- cs/useless-type-test
135+
- cs/useless-upcast
136+
- cs/virtual-call-in-constructor
137+
- cs/wrong-compareto-signature
138+
- cs/wrong-equals-signature
139+
- cs/xmldoc/missing-summary
140+
- csharp/diagnostic/database-quality
141+
- include:
142+
kind:
143+
- diagnostic
144+
- include:
145+
kind:
146+
- metric
147+
tags contain:
148+
- summary
149+
- exclude:
150+
deprecated: //
151+
- exclude:
152+
query path:
153+
- /^experimental\/.*/
154+
- Metrics/Summaries/FrameworkCoverage.ql
155+
- exclude:
156+
tags contain:
157+
- modeleditor
158+
- modelgenerator

0 commit comments

Comments
 (0)