Examples of fireFileStarted()


Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

        for (Entry<File, Set<Object>> entry : fls) {
            final File currentFile = entry.getKey();
            final MessageDispatcher dispatcher = getMessageDispatcher();
            final String path = currentFile.getPath();
            dispatcher.fireFileStarted(path);
            final Set<Object> currentKeys = entry.getValue();

            // Clone the keys so that they are not lost
            final Set<Object> keysClone = Sets.newHashSet(aKeys);
            keysClone.removeAll(currentKeys);
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

    {
        final List<File> files = filter(aFiles);
        final MessageDispatcher dispatcher = getMessageDispatcher();
        for (final File file : files) {
            final String path = file.getPath();
            dispatcher.fireFileStarted(path);
            RandomAccessFile randomAccessFile = null;
            try {
                randomAccessFile = new RandomAccessFile(file, "r");
                if (!endsWithNewline(randomAccessFile)) {
                    log(0, "noNewlineAtEOF", path);
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

            new RegexpHeaderChecker(
                    mHeaderInfo, new FileSetCheckViolationMonitor());
        final List<File> files = filter(aFiles);
        for (final File file : files) {
            final String path = file.getPath();
            msgDispatcher.fireFileStarted(path);
            try {
                final String[] lines = Utils.getLines(path);
                regexpHeaderChecker.checkLines(lines);
            }
            catch (IOException ex) {
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

            final File packageHtml = new File(dir, "package.html");
            final String path;

            if (packageInfo.exists()) {
                path = packageInfo.getPath();
                dispatcher.fireFileStarted(path);
                if (packageHtml.exists()) {
                    log(0, "javadoc.legacyPackageHtml");
                }
            }
            else if (mAllowLegacy && packageHtml.exists()) {
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

                    log(0, "javadoc.legacyPackageHtml");
                }
            }
            else if (mAllowLegacy && packageHtml.exists()) {
                path = packageHtml.getPath();
                dispatcher.fireFileStarted(path);
            }
            else {
                path = packageInfo.getPath();
                dispatcher.fireFileStarted(path);
                log(0, "javadoc.packageInfo");
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

                path = packageHtml.getPath();
                dispatcher.fireFileStarted(path);
            }
            else {
                path = packageInfo.getPath();
                dispatcher.fireFileStarted(path);
                log(0, "javadoc.packageInfo");
            }
            fireErrors(path);
            dispatcher.fireFileFinished(path);
        }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

        for (int i = 0; i < len; i++) {

            final String path = mFiles.get(i).getPath();
            getMessageCollector().reset();
            final MessageDispatcher dispatcher = getMessageDispatcher();
            dispatcher.fireFileStarted(path);

            for (int j = 0; j <= i; j++) {
                findDuplicatesInFiles(i, j);
            }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

                    mHeaderInfo, new FileSetCheckViolationMonitor());
        File[] files = filter(aFiles);
        for (int i = 0; i < files.length; i++) {
            final File file = files[i];
            final String path = file.getPath();
            msgDispatcher.fireFileStarted(path);
            try {
                String[] lines = Utils.getLines(path);
                regexpHeaderChecker.checkLines(lines);
            }
            catch (IOException ex) {
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

        for (final Iterator it = directories.iterator(); it.hasNext();) {
            final File dir = (File) it.next();
            final File packageHtml = new File(dir, "package.html");
            final MessageDispatcher dispatcher = getMessageDispatcher();
            final String path = packageHtml.getPath();
            dispatcher.fireFileStarted(path);
            if (!packageHtml.exists()) {
                log(0, "javadoc.packageHtml");
                fireErrors(path);
            }
            dispatcher.fireFileFinished(path);
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.MessageDispatcher.fireFileStarted()

        for (int i = 0; i < len; i++) {

            final String path = mFiles[i].getPath();
            getMessageCollector().reset();
            final MessageDispatcher dispatcher = getMessageDispatcher();
            dispatcher.fireFileStarted(path);

            for (int j = 0; j <= i; j++) {
                findDuplicatesInFiles(i, j);
            }
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.