-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters