コード例 #1
0
ファイル: DefaultIndex.java プロジェクト: eSh3m4/sonarqube
 /**
  * Views plugin creates copy of technical projects and should be allowed to copy all measures even
  * internal ones
  */
 private boolean isTechnicalProjectCopy(Resource resource) {
   return Scopes.FILE.equals(resource.getScope())
       && Qualifiers.PROJECT.equals(resource.getQualifier());
 }
コード例 #2
0
ファイル: ResourceUtils.java プロジェクト: velo/sonar
 /** @return whether a resource is an entity. */
 public static boolean isEntity(Resource resource) {
   return resource != null && Scopes.FILE.equals(resource.getScope());
 }