Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Encapsulate SonarJava in sorald.sonar subpackage #582

Merged
merged 7 commits into from
Jun 30, 2021

Conversation

slarse
Copy link
Collaborator

@slarse slarse commented Jun 22, 2021

#579

This PR completely encapsulates all Sonar components into the sorald.sonar package, with the corresponding generalizations being placed in the sorald.rule package.

With this design, I managed to replace the current use of SonarJava with SonarLint core, without changing anythign outside of the sorald.sonar package. So, the isolation is pretty good. There are still some leaky abstractions, but further work to support other static analyzers than Sonar should be relatively small. More importantly, we can now customize how we use Sonar in particular without having to rewire the entire application.

I'm still not sure how to proceed with SonarJava, but after the problems I found in using SonarLint (see #583), I'm leaning towards sticking to SonarJava but using some higher-level APIs. Regardless, this PR facilitates any approach we might take with Sonar in the future.

This PR is pretty big but it's rather hard to split as it's a fundamental redesign. Give reviewing it a go and let me know if something is unclear.

@fermadeiral @khaes-kth whoever has the time to review this go ahead :)

@slarse slarse force-pushed the issue/579-encapsulate-sonar branch from 6f75efc to cf20770 Compare June 22, 2021 12:45
Copy link
Collaborator

@khaes-kth khaes-kth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It certainly LGTM!

@fermadeiral
Copy link
Collaborator

LGTM too.

@slarse
Copy link
Collaborator Author

slarse commented Jun 30, 2021

Let's merge then :)

@fermadeiral fermadeiral merged commit 87ce9cc into master Jun 30, 2021
@fermadeiral fermadeiral deleted the issue/579-encapsulate-sonar branch June 30, 2021 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants