I am getting scan error on large *.go files. Error message is "ERROR: Unable to parse file: file:///**/admin_bundle.go.
ERROR: The file size is too big and should be excluded, its size is 2175478 (maximum allowed is 700000 bytes)
I am on Sonarqube Version 8.1. I am using sonar-scanner-4.3.0.2102 to do a scan. just a basic “sonar-scanner -Dsonar.projectBaseDir” command. nothing fancy in sonar-project.properties (list below). Any idea what might be causing this?
This limitation is due to the JSON parser we are using during the analysis process, I’m afraid that for now, you don’t have another choice than excluding this file from the analysis.
I created a ticket to improve the situation (SONARSLANG-521), but be aware that it will only slightly increase the limit, supporting arbitrary large files is another story.