Skip to content

C++: Downgrade cpp/incomplete-parity-check from high to medium precision [CPP-236]#30

Merged
geoffw0 merged 1 commit into
github:masterfrom
jbj:incomplete-parity-check-medium
Aug 14, 2018
Merged

C++: Downgrade cpp/incomplete-parity-check from high to medium precision [CPP-236]#30
geoffw0 merged 1 commit into
github:masterfrom
jbj:incomplete-parity-check-medium

Conversation

@jbj
Copy link
Copy Markdown
Contributor

@jbj jbj commented Aug 8, 2018

As reported in CPP-236, this query has false positives on signed integers that cannot be negative. It could possibly be improved with a local range analysis, but the query would most likely still have so many false positives that we would have to lower its precision.

Under our current policy, this change will make the query hidden by default on LGTM.

As reported in CPP-236, this query has false positives on signed
integers that cannot be negative. It could possibly be improved with a
local range analysis, but the query would most likely still have so many
false positives that we would have to lower its precision.

Under our current policy, this change will make the query hidden by
default on LGTM.
@jbj jbj added the C++ label Aug 8, 2018
@geoffw0
Copy link
Copy Markdown
Contributor

geoffw0 commented Aug 14, 2018

I agree this query, while informative in principle, has a lot of weak results in practice. This is typical of the results I found:

for (int i = 0; i < dist; i++)
{
	...

	if (i % 2 == 1) // i is positive here
	{
		...
	}
}

Merging...

@geoffw0 geoffw0 merged commit 031964e into github:master Aug 14, 2018
aibaars added a commit that referenced this pull request Oct 14, 2021
Get latest fixes from tree-sitter-ruby repo
smowton pushed a commit to smowton/codeql that referenced this pull request Oct 28, 2021
Fix DB relation names to use plurals
erik-krogh pushed a commit to erik-krogh/ql that referenced this pull request Dec 15, 2021
erik-krogh pushed a commit to erik-krogh/ql that referenced this pull request Dec 15, 2021
dbartol pushed a commit that referenced this pull request Dec 18, 2024
dbartol pushed a commit that referenced this pull request Dec 18, 2024
…ion_model

Add missing source for peter-murray/issue-body-parser-action
MathiasVP pushed a commit to MathiasVP/ql that referenced this pull request Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants