Examples of CodeSnifferXmlLogResult


Examples of de.whitewashing.php.cs.command.CodeSnifferXmlLogResult

        if(!fo.hasExt("php") && !fo.hasExt("php5") && !fo.hasExt("phtml")) {
            return violations;
        }

        CodeSnifferXmlLogResult rs = CodeSnifferBuilder.create().execute(fo);

        for(int i = 0; i < rs.getCsErrors().size(); i++) {
            violations.add(
                Task.create(fo, "error", rs.getCsErrors().get(i).getShortDescription(), rs.getCsErrors().get(i).getLineNum()+1)
            );
        }
        for(int i = 0; i < rs.getCsWarnings().size(); i++) {
            violations.add(
                Task.create(fo, "warning", rs.getCsWarnings().get(i).getShortDescription(), rs.getCsWarnings().get(i).getLineNum()+1)
            );
        }

        return violations;
    }
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.