package com.welovecoding.nbeditorconfig.processor;

import org.openide.filesystems.FileObject;

public class SmartSkip {

  public static final boolean IS_ON = true;
  static final String[] IGNORED_FILES = {
    ".git",
    ".svn",
    "bower_components",
    "nbproject",
    "node_modules"
  };

  public static boolean skipDirectory(FileObject directory) {
    String fileName = directory.getName();
    boolean skip = false;

    for (String pattern : IGNORED_FILES) {
      if (fileName.startsWith(pattern)) {
        skip = true;
      }
    }

    if (directory.isFolder() && fileName.startsWith(".")) {
      skip = true;
    }

    return skip;
  }
}

@@ -284,16 +284,30 @@
 modules%22
+,%0A    %22vendor%22
 %0A  %7D;%0A%0A 

Add PHP Composer vendor exception