Code paths involving several files


(Jose Maria Cubel) #1


In SonarQube 6.7, several improvements were added. Smarter analysis were introduced so users can understand issues flows by following code paths and context locations throw the UI.

My question is whether this funcionallity only takes into account code paths in the context of a single analyzed file or SonarQube also considers relationships between several files.

In all cases I’ve seen until now, context locations belongs to a single file.


(G Ann Campbell) #2


IIRC, cross-file issue paths were introduced after 6.7, but they’re in there now. In general, most rules aren’t likely to report cross-file issue paths other than the security issues that are available from 7.3+'s Developer Edition($) and up.