editorconfig-cli icon indicating copy to clipboard operation
editorconfig-cli copied to clipboard

Ignore files based on .gitignore

Open mcandre opened this issue 8 years ago • 0 comments

Awesome command line app, editorconfig-cli is really fast and consistent!

I found a cheap way to filter out .gitignore'd files, by writing a utility app called flcl:

$ go get github.com/amyboyd/editorconfig-cli
$ go get go get github.com/mcandre/flcl/...
$ flcl . | xargs -n 100 editorconfig-cli check

flcl lists all non-gitignored files, which the standard xargs unix utility then passes as additional arguments, 100 at a time, to editorconfig-cli calls.

Would you be interested in adding gitignores to editorconfig-cli directly, or perhaps integrating gitignores into a wrapper CLI application?

mcandre avatar Jun 13 '17 03:06 mcandre