Package com.puppycrawl.tools.checkstyle

Examples of com.puppycrawl.tools.checkstyle.Checker.process()


        }

        checker.addListener( sinkListener );

        List<File> filesList = Arrays.asList( files );
        int nbErrors = checker.process( filesList );

        checker.destroy();

        if ( projectClassLoader instanceof Closeable )
        {
View Full Code Here


        }

        checker.addListener( sinkListener );

        List<File> filesList = Arrays.asList( files );
        int nbErrors = checker.process( filesList );

        checker.destroy();

        if ( request.getStringOutputStream() != null )
        {
View Full Code Here

        }

        checker.addListener( sinkListener );

        List<File> filesList = Arrays.asList( files );
        int nbErrors = checker.process( filesList );

        checker.destroy();

        if ( request.getStringOutputStream() != null )
        {
View Full Code Here

        }

        checker.addListener( sinkListener );

        List<File> filesList = Arrays.asList( files );
        int nbErrors = checker.process( filesList );

        checker.destroy();

        if ( request.getStringOutputStream() != null )
        {
View Full Code Here

        }

        checker.addListener( sinkListener );

        List<File> filesList = Arrays.asList( files );
        int nbErrors = checker.process( filesList );

        checker.destroy();

        if ( projectClassLoader instanceof Closeable )
        {
View Full Code Here

          Checker.class.getClassLoader()));
    checker.setClassloader(new ProjectClassLoader(
          JavaUtils.getJavaProject(project)));
    checker.configure(config);
    checker.addListener(listener);
    checker.process(files);

    return listener.getErrors();
  }

  private static class CheckstyleListener
View Full Code Here

                                request );
        }

        checker.addListener( checkerListener );

        int nbErrors = checker.process( files );

        checker.destroy();

        if ( projectClassLoader instanceof Closeable )
        {
View Full Code Here

                                request );
        }

        checker.addListener( checkerListener );

        int nbErrors = checker.process( files );

        checker.destroy();

        if ( projectClassLoader instanceof Closeable )
        {
View Full Code Here

        final Checker checker = checkerContainer.getChecker();
        synchronized (checker) {
            listener = new CheckStyleAuditListener(
                    filesToElements, manager, true, suppressingErrors, checkerContainer.getTabWidth(), checks);
            checker.addListener(listener);
            checker.process(asListOfFiles(tempFiles));
        }

        return listener.getAllProblems();
    }
View Full Code Here

            final CheckStyleAuditListener listener = new CheckStyleAuditListener(
                    filesToScan, manager, false, suppressingErrors, checkerContainer.getTabWidth(), checks);
            final Checker checker = checkerContainer.getChecker();
            synchronized (checker) {
                checker.addListener(listener);
                checker.process(Arrays.asList(scannableFile.getFile()));
                checker.removeListener(listener);
            }

            final List<ProblemDescriptor> problems = listener.getProblems(psiFile);
            return problems.toArray(new ProblemDescriptor[problems.size()]);
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.