how-to-ns is a Clojure linter (as a Leiningen plugin) for Stuart Sierra's how-to-ns standard.
So far it is somewhat hacky and only has the particular features that I want or that haven't been difficult to add.
Add [com.gfredericks/how-to-ns "0.1.9"]
to the :plugins
vector
of your project.clj or :user
profile.
To lint the ns forms, printing diffs wherever there are problems:
lein how-to-ns check
To fix the ns forms that don't pass the linter:
lein how-to-ns fix
Add a :how-to-ns
entry (to project.clj
or the :user
profile) with
any of the following options:
{:require-docstring? true
:sort-clauses? true
:allow-refer-all? false
:allow-rename? false
:allow-extra-clauses? false
:align-clauses? false
:import-square-brackets? false}
{:read-cond :preserve}
, but we would also
need to know what formatting to target, especially since a conditional can show
up at any levelCopyright © 2016 Gary Fredericks
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close