Search in sources :

Example 1 with FileExclusions

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);
}
Also used : FileExclusions(org.sonarsource.sonarlint.core.client.api.common.FileExclusions) ExclusionItem(org.sonarlint.intellij.config.project.ExclusionItem)

Aggregations

ExclusionItem (org.sonarlint.intellij.config.project.ExclusionItem)1 FileExclusions (org.sonarsource.sonarlint.core.client.api.common.FileExclusions)1