Package com.googlecode.jslint4java.formatter

Examples of com.googlecode.jslint4java.formatter.PlainFormatter


        logIssuesToConsole(result);
    }

    private void logIssuesToConsole(JSLintResult result)
    {
        JSLintResultFormatter formatter = new PlainFormatter();
        String report = formatter.format(result);
        for (String line : report.split("\n")) {
            getLog().info(line);
        }
    }
View Full Code Here


    private void setResultFormatter(String reportType) {
        if (reportType == null || reportType.equals("")) {
            // The original CLI behaviour: one-per-line, with prefix.
            formatter = new DefaultFormatter();
        } else if (reportType.equals("plain")) {
            formatter = new PlainFormatter();
        } else if (reportType.equals("xml")) {
            formatter = new JSLintXmlFormatter();
        } else if (reportType.equals("junit")) {
            formatter = new JUnitXmlFormatter();
        } else if (reportType.equals("report")) {
View Full Code Here

        }
        logIssuesToConsole(result);
    }

    private void logIssuesToConsole(JSLintResult result) {
        JSLintResultFormatter formatter = new PlainFormatter();
        String report = formatter.format(result);
        for (String line : report.split("\n")) {
            getLog().info(line);
        }
    }
View Full Code Here

        ReportWriterImpl f2 = new ReportWriterImpl(new File(outputFolder, JUNIT_XML),
                new JUnitXmlFormatter());
        ReportWriterImpl f3 = new ReportWriterImpl(new File(outputFolder, CHECKSTYLE_XML),
                new CheckstyleXmlFormatter());
        ReportWriterImpl f4 = new ReportWriterImpl(new File(outputFolder, REPORT_TXT),
                new PlainFormatter());
        ReportWriterImpl f5 = new ReportWriterImpl(new File(outputFolder, REPORT_HTML),
                new ReportFormatter());
        return new MultiReportWriter(f1, f2, f3, f4, f5);
    }
View Full Code Here

        assertThat(file + " is not empty", file.length() > 0, is(true));
    }

    private ReportWriter makeReportWriter(File aFile) {
        assertThat(aFile.exists(), is(false));
        return new ReportWriterImpl(aFile, new PlainFormatter());
    }
View Full Code Here

TOP

Related Classes of com.googlecode.jslint4java.formatter.PlainFormatter

Copyright © 2018 www.massapicom. 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.