Long nested folder structure fail on component key validation due to 400 character limit

  • sonarqube version: sonarqube-10.3.0-2.82913
  • how is SonarQube deployed:- zip
  • Trying to scan a source code using sonarqube community edition, but the scan keeps failing by giving below error regarding component key length:
    java.lang.IllegalStateException: Component key length (540) is longer than the maximum authorized (400)
  • The source code contains a file which is deeply nested, is there any way we can scan that file by solving above issue

Hey there.

Is it really just a single file?

If so, my recommendation would be to exclude this file.