You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the Linux SonarScanner (sonar-scanner-cli-5.0.1.3006-linux) threw an error that looked like this:
#23 32.10 ERROR: Error during SonarScanner execution
#23 32.10 java.lang.IllegalArgumentException: 0 is not a valid line for a file
#23 32.10 at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
#23 32.10 at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:370)
#23 32.10 at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:307)
#23 32.10 at org.sonar.api.batch.fs.internal.DefaultInputFile.selectLine(DefaultInputFile.java:330)
#23 32.10 at org.sonar.scanner.externalissue.ExternalIssueImporter.fillLocation(ExternalIssueImporter.java:135)
#23 32.10 at org.sonar.scanner.externalissue.ExternalIssueImporter.importIssue(ExternalIssueImporter.java:81)
#23 32.10 at org.sonar.scanner.externalissue.ExternalIssueImporter.execute(ExternalIssueImporter.java:57)
#23 32.10 at org.sonar.scanner.externalissue.ExternalIssuesImportSensor.execute(ExternalIssuesImportSensor.java:74)
On a hunch, I made a sed command to change "startLine": 0 to "startLine": 1, and the import worked.
It appears that SonarScanner does not like a file line of 0.
The text was updated successfully, but these errors were encountered:
When transforming fortify results using the co, one of the transformed results looked like this:
However, the Linux SonarScanner (sonar-scanner-cli-5.0.1.3006-linux) threw an error that looked like this:
On a hunch, I made a sed command to change "startLine": 0 to "startLine": 1, and the import worked.
It appears that SonarScanner does not like a file line of 0.
The text was updated successfully, but these errors were encountered: