:paths config from .cljfmt.edn is ignored by `cljfmt.main/-main`
mthl opened this issue · 2 comments
In the README there is the following description
:paths - determines which directories to include in the scan. Arguments to lein check take precedence. If neither :paths nor command line arguments are given, cljfmt uses the lein project's :source-paths and :test-paths.
which makes me expect that given a .cljfmt.edn
containing
{:paths ["foo" "bar"]}
(cljfmt.main/-main "check")
would scan files from "foo" and "bar" directories instead of the default "src", "test" "project.clj" paths, but maybe I am not understanding the documentation correctly. In any case it would be nice to be able to scan a collection of paths different from "src", "test", and "project.clj" without explicitely providing them as command line args.
Thanks for the bug report, I've fixed this on master
.
Thank you for the fix !