Skip to content

Precisely which code is analysed by control-flag? #28

Answered by jgottschlich
JZacaroli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @JZacaroli -

First, thank you so much for looking into and using ControlFlag! We greatly appreciate your support. :)

Second, your understanding of ControlFlag (CF) is precisely correct for the current implementation. CF currently only analyzes if conditional expressions for anomalous code. The reason for this is many-fold, however, we plan to add support for all other control flow expressions (e.g., for loops, while loops, etc.) soon.

One of the reasons we initially targeted if statements is because we had seen from various programming language surveys that a large number of the defects in code come from incorrectly written if conditionals (i.e., incorrect Boolean logic). That said, th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JZacaroli
Comment options

@jgottschlich
Comment options

Answer selected by JZacaroli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested
2 participants