Configuring Static Code Analysis

I have installed Upsource 2.0.3462 and was able to configure the source code repository & gradle as the build config tool. I still do not see code analysis while viewing the source code file.

What are the steps needed to configure the static code analysis rules? Can it include PMD, Findbugs, Check-style rules?

3 comments
Comment actions Permalink

No additional steps are reuired for enabling static code analysis. When build system is correctly configured, code intellegence should start working automatically. As for PMD, Findbugs, Check-style rules, here is correponding feature requests that you might want to upvote and watch

https://youtrack.jetbrains.com/issue/UP-4522
https://youtrack.jetbrains.com/issue/UP-4521
https://youtrack.jetbrains.com/issue/UP-4523

By the way, for the future consideration, how this options should be enabled?  Via checkbox in project administration or ..?

Thanks inadvance.

0
Comment actions Permalink

Configurations would be good on the project administration page but I am not sure how will you accomodate configuring different rules of these specific tools - PMD, Findbugs etc. Sonar combines all these tools. May be integrating with sonar would be a good idea. Showing all the sonar violations side-by-side the source file would be a good enhancement. What do you think?

0
Comment actions Permalink

Yep, sounds reasonable, will move it for the further consideration.

Thanks!

0

Please sign in to leave a comment.