diff --git a/csharp/ql/integration-tests/posix/query-suite/csharp-code-quality.qls.expected b/csharp/ql/integration-tests/posix/query-suite/csharp-code-quality.qls.expected index 472e79575ca5..dc3791621c3e 100644 --- a/csharp/ql/integration-tests/posix/query-suite/csharp-code-quality.qls.expected +++ b/csharp/ql/integration-tests/posix/query-suite/csharp-code-quality.qls.expected @@ -5,6 +5,7 @@ ql/csharp/ql/src/Dead Code/DeadStoreOfLocal.ql ql/csharp/ql/src/Likely Bugs/Collections/ContainerLengthCmpOffByOne.ql ql/csharp/ql/src/Likely Bugs/Collections/ContainerSizeCmpZero.ql ql/csharp/ql/src/Likely Bugs/DangerousNonShortCircuitLogic.ql +ql/csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql ql/csharp/ql/src/Likely Bugs/ReferenceEqualsOnValueTypes.ql ql/csharp/ql/src/Likely Bugs/SelfAssignment.ql ql/csharp/ql/src/Likely Bugs/UncheckedCastInEquals.ql diff --git a/csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql b/csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql index bdf3ee4e97c8..1109201fbe19 100644 --- a/csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql +++ b/csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql @@ -5,7 +5,7 @@ * computation does not follow the standard rules of algebra. * @kind problem * @problem.severity warning - * @precision medium + * @precision high * @id cs/equality-on-floats * @tags reliability * correctness diff --git a/csharp/ql/src/change-notes/2025-04-28-equality-on-floats-precision.md b/csharp/ql/src/change-notes/2025-04-28-equality-on-floats-precision.md new file mode 100644 index 000000000000..a990d236eecb --- /dev/null +++ b/csharp/ql/src/change-notes/2025-04-28-equality-on-floats-precision.md @@ -0,0 +1,4 @@ +--- +category: minorAnalysis +--- +* Changed the precision of the `cs/equality-on-floats` query from medium to high. diff --git a/csharp/ql/src/codeql-suites/csharp-code-quality.qls b/csharp/ql/src/codeql-suites/csharp-code-quality.qls index 64a100acda22..85bbe4db683d 100644 --- a/csharp/ql/src/codeql-suites/csharp-code-quality.qls +++ b/csharp/ql/src/codeql-suites/csharp-code-quality.qls @@ -14,3 +14,4 @@ - cs/non-short-circuit - cs/useless-assignment-to-local - cs/invalid-string-formatting + - cs/equality-on-floats