Exemplo n.º 1
0
 public FlexSquidSensor(
     RulesProfile profile,
     FlexResourceBridge resourceBridge,
     FileLinesContextFactory fileLinesContextFactory) {
   this.annotationCheckFactory =
       AnnotationCheckFactory.create(profile, CheckList.REPOSITORY_KEY, CheckList.getChecks());
   this.resourceBridge = resourceBridge;
   this.fileLinesContextFactory = fileLinesContextFactory;
 }
Exemplo n.º 2
0
 @Override
 public RulesProfile createProfile(ValidationMessages validation) {
   AnnotationBasedProfileBuilder annotationBasedProfileBuilder =
       new AnnotationBasedProfileBuilder(ruleFinder);
   return annotationBasedProfileBuilder.build(
       CheckList.REPOSITORY_KEY,
       CheckList.SONAR_WAY_PROFILE,
       Flex.KEY,
       CheckList.getChecks(),
       validation);
 }