Skip to content

gfredericks/lein-all-my-files-should-end-with-exactly-one-newline-character

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regrets

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

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.

Obtention

Add [com.gfredericks/lein-all-my-files-should-end-with-exactly-one-newline-character "0.1.2"] to the :plugins vector of your project.clj or :user profile.

Usage

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

License

Copyright © 2017 Gary Fredericks

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A Clojure linter that enforces end-of-file newlines.

Resources

License

Stars

Watchers

Forks

Packages

No packages published