SpaceAfterClosingBraceRule processing source file [null] -> StringIndexOutOfBoundsException

Error from [org.codenarc.rule.formatting.SpaceAfterClosingBraceRule] processing source file [null]
java.lang.StringIndexOutOfBoundsException: String index out of range: 1

  • versions used (SonarQube → sonarqube-7.9.3)
    Running on Jenkins.
  • export JAVA_HOME=/etc/alternatives/java_jdk_1.8.0
  • PATH=$PATH:/mnt/J2Dev/node-v8.17.0-linux-x64/bin
  • sh ./gradlew sonarqube
    (Grails 3-project)

Other projects work

How can I verify which file is giving the issue?


Welcome to the community!

That error is from Codenarc. You’ll need to ask them about it. Unfortunately, we can’t help you with it here.


Thanks - I should have spotted that. Will check further.

B.t.w., my issue was probably caused by having a backslash \ in one of the files. After removal the analysis continued.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.