In hindsight, this probably should just be a bash script, especially since you'd likely want to apply it to all text files, not just clojure source.
But I'll keep it here, in case somebody finds it useful and also because it has a silly name.
lein-all-my-files-should-end-with-exactly-one-newline-character is a Leiningen plugin that lints your source files to ensure they end with exactly one newline character.
Add [com.gfredericks/lein-all-my-files-should-end-with-exactly-one-newline-character "0.1.1"]
to the :plugins
vector of your project.clj or :user
profile.
Check for problems:
$ lein all-my-files-should-end-with-exactly-one-newline-character but-do-they?
Fix them:
$ lein all-my-files-should-end-with-exactly-one-newline-character so-fix-them
Copyright © 2017 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