Getting "circular issues"

Hello all,

Since yesterday (09.04.2025), we’ve been seeing some issues in SonarCloud related to cyclic dependencies (e.g. “This file is part of one cycle involving…”).

However, even though we have the eslint-plugin-sonarjs dependency in the repository, I’m not seeing these issues flagged in my local environment (VSCode).

Right now the “import/no-cycle” is disabled, but even enabling it, I still can’t see the eslint issue.

Do I need to configure something specifically to detect these issues locally using ESLint?

The repository of my project is available to see in this link.

Please let me know if there’s any misconfiguration I might have missed.

Hi,

Welcome to the community!

You’re not seeing those issues raised by eslint-plugin-sonarjs because… they’re not raised by eslint-plugin-sonarjs. Even in SonarCloud. :sweat_smile:

Not every rule is run in SonarQube for VSCode, but most are.

 
HTH,
Ann

Thanks for your message. But for this specific case, how can I see if the issue has been solved locally (even for the ESLint tool or Sonar VSCode extension) before I push my changes?

Because neither the ESLint tool or Sonar VSCode extension are showing me this issue.

Hi,

Sorry. After I answered you, I followed up internally & it turns out even in SonarQube for VSCode, we don’t run the architecture rules. I pointed you in that direction because they’re not yet included in the docs’ list of un-run rules - they’re fairly new - but I’m going to get that fixed.

Sorry for the confusion.

 
:frowning:
Ann

thank you, do you have a deadline to fix it? :slight_smile:

Hi,

Unfortunately, I can’t give you a timeline right now.

 
:frowning:
Ann

Hi Ann,

Thanks for your reply!

I just have a quick follow-up question:
We have a scenario where Component A imports Component B, and depending on certain business logic, Component B might also import Component A. This circular reference is intentional and expected in our setup.

Is there a way to disable the “circular file imports” warning specifically for these two files, while keeping the rule active for the rest of the codebase?

Thanks again for your help!

Hi,

Yes. "Accept"ing the issue in SonarQube for Cloud should make it go away for you.

 
HTH,
Ann