-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow setting of SonarQube module key bindings by applying a pattern #15
base: main
Are you sure you want to change the base?
Allow setting of SonarQube module key bindings by applying a pattern #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog and version bump are missing.
// create a dummy list for the purpose of collecting the number of changes only | ||
List<String> changedModuleConfigs = new ArrayList<>(); | ||
for (Binding binding : configuration.getBindings()) { | ||
moduleMap.entrySet().stream().filter(e -> e.getKey().matches(binding.getModulePattern())).forEach(e -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moduleMap.entrySet().stream().filter(moduleEntry -> modukeEntry.getKey().matches(binding.getModulePattern())).forEach(moduleEntry -> {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Descriptive lambda names are better here because not every editor displays type inferences.
try { | ||
return updateHandler.updateConfiguration(extensionConfiguration.get(), project); | ||
} catch (Exception e) { | ||
LOG.error("An error occurred trying to process configuration updates for \"{}\"", e, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the exception really be the first logger argument here?
A new SonarLintHandler has been added, allowing a module name pattern matching to set a SonarQube project key.
Example autoconfigSonarLint.yaml:
Closes #8