Last analysis failed Analysis ID “875b4dd2-3623-4e5d-888c-c826fdf10440”

automatic scan failing on repo, getting The last analysis has failed. it keeps on failing after several attempts,

Hi @tobesegun,

Thanks for posting to the community.

I can see the scanner failed with this error:

java.lang.IllegalArgumentException: Line 223 is out of range for file src/web/src/i18n/locales/en.ts. File has 222 lines.

This is typically caused by inconsistent file encodings. The general expectation is that the encoding is consistent across files of the project. You may consider excluding such files from the analysis if you can’t change the encoding.

See also this documentation section specific to JS/TS, mentioning that UTF-8 is expected.

You can instruct the sonar scanner to use a specific encoding by specifying the
sonar.sourceEncoding property. See related documentation here.

I hope this helps.