Examples of doesNotMatchPathPatterns()


Examples of org.sonar.api.batch.fs.FilePredicates.doesNotMatchPathPatterns()

    logExclusions(cpdExclusions, LOG);
    FilePredicates p = fs.predicates();
    List<InputFile> sourceFiles = Lists.newArrayList(fs.inputFiles(p.and(
      p.hasType(InputFile.Type.MAIN),
      p.hasLanguage(languageKey),
      p.doesNotMatchPathPatterns(cpdExclusions)
      )));
    if (sourceFiles.isEmpty()) {
      return;
    }
View Full Code Here

Examples of org.sonar.api.batch.fs.FilePredicates.doesNotMatchPathPatterns()

    logExclusions(cpdExclusions, LOG);
    FilePredicates p = fs.predicates();
    List<InputFile> sourceFiles = Lists.newArrayList(fs.inputFiles(p.and(
      p.hasType(InputFile.Type.MAIN),
      p.hasLanguage(languageKey),
      p.doesNotMatchPathPatterns(cpdExclusions)
      )));
    if (sourceFiles.isEmpty()) {
      return;
    }
    SonarDuplicationsIndex index = createIndex(project, languageKey, sourceFiles);
View Full Code Here

Examples of org.sonar.api.batch.fs.FilePredicates.doesNotMatchPathPatterns()

    String[] cpdExclusions = context.settings().getStringArray(CoreProperties.CPD_EXCLUSIONS);
    FilePredicates p = context.fileSystem().predicates();
    List<InputFile> sourceFiles = Lists.newArrayList(context.fileSystem().inputFiles(p.and(
      p.hasType(InputFile.Type.MAIN),
      p.hasLanguage(Xoo.KEY),
      p.doesNotMatchPathPatterns(cpdExclusions)
      )));
    if (sourceFiles.isEmpty()) {
      return;
    }
    for (InputFile file : sourceFiles) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.