use of org.sonarsource.sonarlint.core.client.api.common.FileExclusions in project sonarlint-intellij by SonarSource.
the class LocalFileExclusions method loadProjectExclusions.
private void loadProjectExclusions(SonarLintProjectSettings settings) {
List<ExclusionItem> projectExclusionsItems = settings.getFileExclusions().stream().map(ExclusionItem::parse).filter(Objects::nonNull).collect(Collectors.toList());
Set<String> projectFileExclusions = getExclusionsOfType(projectExclusionsItems, ExclusionItem.Type.FILE);
Set<String> projectDirExclusions = getExclusionsOfType(projectExclusionsItems, ExclusionItem.Type.DIRECTORY);
Set<String> projectGlobExclusions = getExclusionsOfType(projectExclusionsItems, ExclusionItem.Type.GLOB);
this.projectExclusions = new FileExclusions(projectFileExclusions, projectDirExclusions, projectGlobExclusions);
}
Aggregations