Skip to content

Commit a15b9a8

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

File tree

1 file changed

+141
-2
lines changed

1 file changed

+141
-2
lines changed
Lines changed: 141 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,143 @@
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/complex-block
41+
- cs/complex-condition
42+
- cs/constant-comparison
43+
- cs/constant-condition
44+
- cs/coupled-types
45+
- cs/dereferenced-value-is-always-null
46+
- cs/dereferenced-value-may-be-null
47+
- cs/dispose-not-called-on-throw
48+
- cs/downcast-of-this
49+
- cs/empty-block
50+
- cs/empty-catch-block
51+
- cs/empty-collection
52+
- cs/empty-lock-statement
53+
- cs/equality-on-floats
54+
- cs/equals-on-arrays
55+
- cs/equals-on-unrelated-types
56+
- cs/equals-uses-as
57+
- cs/equals-uses-is
58+
- cs/expose-implementation
59+
- cs/field-masks-base-field
60+
- cs/gethashcode-is-not-defined
61+
- cs/impossible-array-cast
62+
- cs/inconsistent-compareto-and-equals
63+
- cs/inconsistent-equals-and-gethashcode
64+
- cs/inconsistent-lock-sequence
65+
- cs/index-out-of-bounds
66+
- cs/inefficient-containskey
67+
- cs/invalid-dynamic-call
68+
- cs/invalid-string-formatting
69+
- cs/linq/inconsistent-enumeration
70+
- cs/linq/missed-all
71+
- cs/linq/missed-cast
72+
- cs/linq/missed-oftype
73+
- cs/linq/missed-select
74+
- cs/linq/missed-where
75+
- cs/linq/useless-select
76+
- cs/local-not-disposed
77+
- cs/local-shadows-member
78+
- cs/lock-this
79+
- cs/locked-wait
80+
- cs/loss-of-precision
81+
- cs/mishandling-japanese-era
82+
- cs/misleading-indentation
83+
- cs/missed-readonly-modifier
84+
- cs/missed-ternary-operator
85+
- cs/missed-using-statement
86+
- cs/nested-if-statements
87+
- cs/nested-loops-with-same-variable
88+
- cs/non-short-circuit
89+
- cs/null-argument-to-equals
90+
- cs/path-combine
91+
- cs/recursive-equals-call
92+
- cs/recursive-operator-equals-call
93+
- cs/reference-equality-on-valuetypes
94+
- cs/reference-equality-with-object
95+
- cs/rethrown-exception-variable
96+
- cs/self-assignment
97+
- cs/simplifiable-boolean-expression
98+
- cs/static-field-written-by-instance
99+
- cs/string-concatenation-in-loop
100+
- cs/stringbuilder-creation-in-loop
101+
- cs/stringbuilder-initialized-with-character
102+
- cs/test-for-negative-container-size
103+
- cs/too-many-ref-parameters
104+
- cs/type-test-of-this
105+
- cs/unchecked-cast-in-equals
106+
- cs/unmanaged-code
107+
- cs/unsafe-double-checked-lock
108+
- cs/unsafe-sync-on-field
109+
- cs/unsafe-year-construction
110+
- cs/unsynchronized-getter
111+
- cs/unsynchronized-static-access
112+
- cs/unused-collection
113+
- cs/unused-label
114+
- cs/unused-property-value
115+
- cs/useless-assignment-to-local
116+
- cs/useless-cast-to-self
117+
- cs/useless-gethashcode-call
118+
- cs/useless-if-statement
119+
- cs/useless-tostring-call
120+
- cs/useless-type-test
121+
- cs/useless-upcast
122+
- cs/virtual-call-in-constructor
123+
- cs/wrong-compareto-signature
124+
- cs/wrong-equals-signature
125+
- cs/xmldoc/missing-summary
126+
- include:
127+
kind:
128+
- diagnostic
129+
- include:
130+
kind:
131+
- metric
132+
tags contain:
133+
- summary
134+
- exclude:
135+
deprecated: //
136+
- exclude:
137+
query path:
138+
- /^experimental\/.*/
139+
- Metrics/Summaries/FrameworkCoverage.ql
140+
- exclude:
141+
tags contain:
142+
- modeleditor
143+
- modelgenerator

0 commit comments

Comments
 (0)