Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/shfmt: add a way to ignore directory entries when walking
This piggybacks on v3's EditorConfig feature, obeying the "ignore = true" property. The provided example uses a "/**" suffix, since that's the best way to match a directory sub-tree right now. "third_party" alone could match a non-directory with that name, and EditorConfig doesn't support patterns like "third_party/". We could add support for that later if needed. Once a directory is ignored, it's not walked at all. This way, huge directories containing uninteresting files can be skipped entirely. Fixes #288.
- Loading branch information