code: 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))
          );
      }
docs: {@inheritDoc}