When I run an analysis, I am flooded with messages like[Step 9/10] ERROR: Failed to parse file [file:///src/UI/Assets/private/aurelia/src/utils/util.js] at line 22: Unexpected character ‘@’

It looks like support for this was added back in 2016 (https://github.com/SonarSource/SonarJS/pull/327) but I don’t see it working in our scanner runs. I also don’t see any relevant settings that might help in our Sonarqube profile configurations. Am I missing some setting?

Hi @queen-of-code,
welcome to our community.
Regarding SonarJS, we’re currently working on replacing our “homemade” parser with a community-based one espree (the one used by ESLint).

As we didn’t complete the full migration, we try first to parse with espree parser: if we have a parse error, we log an error message and we fallback to our “homemade” parser.
If I’m not wrong decorators are still at stage 2, so they’re not considered standard JS syntax (hence espree doesn’t support them).

However, despite having those parse errors logged, your analysis should still be successful at the end. Could you please confirm if that’s the case?