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: create sorald-api #783

Merged
merged 3 commits into from
Apr 6, 2022
Merged

Conversation

MartinWitt
Copy link
Contributor

@MartinWitt MartinWitt commented Apr 5, 2022

This PR finally creates the Sorald API module. I have only included the necessary classes in the API. The Rules#of method is removed in this PR. This is a breaking change, but there is no way to really support such a method inside the rule interface.

Copy link
Member

@algomaster99 algomaster99 left a comment

Choose a reason for hiding this comment

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

Looks good to me! The next step is to rename sorald/sorald to sorald/sorald-sonar, I guess?

Comment on lines -16 to -25

/**
* Create a rule based on the key.
*
* @param key A key for which to create a rule.
* @return A rule based on the key.
*/
static Rule of(String key) {
return new SonarRule(key);
}
Copy link
Member

Choose a reason for hiding this comment

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

It is okay we removed this from the interface. We can instead always use new SonarRule in sorald-sonar.

@algomaster99 algomaster99 changed the title feat: create sorald-api refactor: create sorald-api Apr 6, 2022
@MartinWitt
Copy link
Contributor Author

The next step is to move sorald-sonar classes to a sorald-sonar submodule, yes.

@algomaster99 algomaster99 merged commit a7f4139 into ASSERT-KTH:spi Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants