Need to check the loop call of the code.
for example, routine A call routine B, routine B call routine C, routine C call routine A, so we can see a cyclic loop for routines.
In SonarQube™ Marketplace, you can find:
sonar-dependency-check sonar-sonargraph-integration for cyclic dependencies
Do not know whether the above two meet the demand?