Open A3lfyr opened 2 years ago
I managed to isolate the problematic file by dichotomy. In the same way I understood that the problem came from an apostrophe in an EOU block in a shell script :
cat <<-EOU
...
this script's directory
...
EOU
The solution was to delete this apostrophe
cat <<-EOU
...
this script s directory
...
EOU
Hello, I hope you can help me
Describe the bug
When I run a scan (sonar-scanner command or in a docker container
sonarsource/sonar-scanner-cli
orlequal/sonar-scanner
) on a project containing some shell files, the scan execution crashes with the following error:I have this problem on 2 different projects, but it does not appear on all projects containing shell code.
This problem is not solved by disabling the COM.FLOW.Recursion rule in the associated quality profile
This problem does not occur anymore if I deactivate the i-Code CNES plugin.
To reproduce
The problem is difficult to reproduce because it appears only on certain projects, projects for which the sources cannot be shared.
Screenshots & log
Here is the stacktrace using the debug mode of sonar-scanner (argument
-X
):User environment
Run scan directly with the sonar-scanner command or in a docker container
sonarsource/sonar-scanner-cli
orlequal/sonar-scanner