Analysis JavaScript and Java in one project

Hello @Jave-Chen, welcome to the community forum!

It is certainly possible to analyse both Java and Javascript code with the Maven scanner.
In your case adding

<properties>
    <sonar.sources>src/js</sonar.sources>
</properties>

to the dolphinscheduler-ui/pom.xml should make the the analyser detect your Javascript files as well.

Hope that helps,
Tom