Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A5-16-1: Ternary operator not used as a sub expression #612

Open
nbusser opened this issue Jun 5, 2024 · 0 comments
Open

A5-16-1: Ternary operator not used as a sub expression #612

nbusser opened this issue Jun 5, 2024 · 0 comments
Labels
false positive/false negative An issue related to observed false positives or false negatives.

Comments

@nbusser
Copy link

nbusser commented Jun 5, 2024

Affected rules

  • A5-16-1

Description

CodeQL triggers A5-16-1 on a plain ternary expression.

Example

const auto smallestSet = (setA.size() < setB.size() ? setA : setB);
@nbusser nbusser added the false positive/false negative An issue related to observed false positives or false negatives. label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false positive/false negative An issue related to observed false positives or false negatives.
Projects
Development

No branches or pull requests

1 participant