greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Support shebang #70

Closed ne-sachirou closed 3 years ago

ne-sachirou commented 3 years ago

Some Clojure files have shebang like #!/usr/bin/env clj -M or #!/usr/bin/env bb (it's https://github.com/babashka/babashka ). cljstyle can't process these files with clojure.lang.ExceptionInfo: Invalid symbol: !/usr/bin/env.. When the first line starts with #! it would be a shebang so it'll be ignored.

skovuri41 commented 3 years ago

!/usr/bin/env bb

babashka scripts have these, and cljstyle fails.