Package ch.hortis.sonar.model

Examples of ch.hortis.sonar.model.RuleFailure.addParameter()


          File file = getFilesRepository().getFile(violation.getAttribute("package"), filename);
          failure.setFile(file);
          String line = violation.getAttribute("line");
          if (line != null && !"".equals(line)) {
            failure.addParameter("line", Double.valueOf(line));
          }
          failure.setMessage(violation.getFirstChild().getNodeValue());
          int priority = Integer.parseInt(violation.getAttribute("priority"));
          if (priority <= 2) {
            failure.setLevel(RuleFailureLevel.ERROR);
View Full Code Here


          failure.setRule(rulesService.getRuleByPluginKey(source));
          failure.setFile(getFile(checkstyleName));
          failure.setMessage(error.getAttribute("message"));
          String line = error.getAttribute("line");
          if (line != null && !"".equals(line)) {
            failure.addParameter("line", Double.valueOf(line));
          }
          String column = error.getAttribute("column");
          if (column != null && !"".equals(column)) {
            failure.addParameter("column", Double.valueOf(column));
          }
View Full Code Here

          if (line != null && !"".equals(line)) {
            failure.addParameter("line", Double.valueOf(line));
          }
          String column = error.getAttribute("column");
          if (column != null && !"".equals(column)) {
            failure.addParameter("column", Double.valueOf(column));
          }
          String severity = error.getAttribute("severity");
          if ("error".equals(severity)) {
            failure.setLevel(RuleFailureLevel.ERROR);
          } else if ("warning".equals(severity)) {
View Full Code Here

          failure.setRule( rulesService.getRuleByPluginKey( source ) );
          failure.setFile( getFile( checkstyleName ) );
          failure.setMessage( error.getAttribute( "message" ) );
          String line = error.getAttribute( "line" );
          if ( line != null && !"".equals( line ) ) {
            failure.addParameter( "line", Double.valueOf( line ) );
          }
          String column = error.getAttribute( "column" );
          if ( column != null && !"".equals( column ) ) {
            failure.addParameter( "column", Double.valueOf( column ) );
          }
View Full Code Here

          if ( line != null && !"".equals( line ) ) {
            failure.addParameter( "line", Double.valueOf( line ) );
          }
          String column = error.getAttribute( "column" );
          if ( column != null && !"".equals( column ) ) {
            failure.addParameter( "column", Double.valueOf( column ) );
          }
          String severity = error.getAttribute( "severity" );
          if ( "error".equals( severity ) ) {
            failure.setLevel( RuleFailureLevel.ERROR );
          } else if ( "warning".equals( severity ) ) {
View Full Code Here

          File file = getFilesRepository().getFile( violation.getAttribute( "package" ), filename );
          failure.setFile( file );
          String line = violation.getAttribute( "line" );
          if ( line != null && !"".equals( line ) ) {
            failure.addParameter( "line", Double.valueOf( line ) );
          }
          failure.setMessage( violation.getFirstChild().getNodeValue() );
          int priority = Integer.parseInt( violation.getAttribute( "priority" ) );
          if ( priority <= 2 ) {
            failure.setLevel( RuleFailureLevel.ERROR );
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.