plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReport.java
public boolean canGenerateReport() {
        if (skip) {
            return false;
        }

        // TODO: would be good to scan the files here
        for (File sourceDirectory : getSourceDirectories()) {
            if (sourceDirectory.exists()) {
                return true;
            }
        }

        if (includeTestSourceDirectory) {
            for (File testSourceDirectory : getTestSourceDirectories()) {
                if (testSourceDirectory.exists()) {
                    return true;
                }
            }
        }

        return ((includeResources && hasResources(resources))
                || (includeTestResources && hasResources(testResources))
        );
    }
public boolean canGenerateReport() {
        if (skip) {
            return false;
        }

        // TODO: would be good to scan the files here
        for (File sourceDirectory : getSourceDirectories()) {
            if (sourceDirectory.exists()) {
                return true;
            }
        }

        if (includeTestSourceDirectory) {
            for (File testSourceDirectory : getTestSourceDirectories()) {
                if (testSourceDirectory.exists()) {
                    return true;
                }
            }
        }

        return ((includeResources && hasResources(resources))
                || (includeTestResources && hasResources(testResources))
        );
    }
{@inheritDoc}