The tool crashes when analyzing some projects (version 0.0.25). If in $path is the path to the respective project, the call looks like this:
rust-code-analysis-cli --paths "$path" --metrics --output-format json
Examples
Here are some examples for the crashes:
Which of the two errors exactly occurs seems to be not stable.
Workaround
My current workaround is to call the CLI tool separate for every file. This at least allows getting the results for the other files, where it does not crash. However, this is maybe slower. The bash code looks like this:
find "$path" -path "$path/.git" -prune -o -type f -exec bash -c \
'rust-code-analysis-cli --paths "$0" --metrics --output-format json || true' '{}' \;
The tool crashes when analyzing some projects (version 0.0.25). If in
$pathis the path to the respective project, the call looks like this:rust-code-analysis-cli --paths "$path" --metrics --output-format jsonExamples
Here are some examples for the crashes:
Which of the two errors exactly occurs seems to be not stable.
Workaround
My current workaround is to call the CLI tool separate for every file. This at least allows getting the results for the other files, where it does not crash. However, this is maybe slower. The bash code looks like this: