Multiple JS files are not analyzed by Sonar

  • ALM used: GitHub
  • CI system used: Jenkins
  • Languages of the repository: Java, JS, CSS
    Multiple JS files are not analyzed in the repository now.

The log messages contain: File ‘…’ was excluded because it looks like a bundle. (Disable detection with sonar.javascript.detectBundles=false)

Since it affects 41 file in our repository I can assume this ‘bundle’ detection can generate a lot of problems for different customers - a lot of files can be missing from the analyzing, and the customer would NOT be aware of that unless they check CI logs (because this bundle detection is a silent option enabled by default).

Maybe this option should be disabled by default…
Most likely it’s caused by this commit: Ignore bundled code (#3499) · SonarSource/SonarJS@66249f6 · GitHub

hello @lrozenblyum,

can you please share what the files which were excluded look like? I would like to understand why they are detected as bundles.

Hello @saberduck!
Sorry for the late response.
Yes it’s possible but better not in a public area since it’s commercial info.
How to share it privately?