cleaxure has gone too far

This commit is contained in:
Tom Crayford 2015-03-06 22:40:14 +09:00
parent 14379a7305
commit 991f1c4e68

View file

@ -59,6 +59,11 @@
(abort "Sorry, names such as clojure or *jure are not allowed."
"\nIf you intend to use this name ironically, please set the"
"\nLEIN_IRONIC_JURE environment variable and try again.")
(and (re-find #"(?i)(?<!(cl|comp))eaxure" name)
(not (System/getenv "LEIN_IRONIC_EAXURE")))
(abort "Sorry, names such as cleaxure or *eaxure are not allowed."
"\nIf you intend to use this name ironically, please set the"
"\nLEIN_IRONIC_EAXURE environment variable and try again.")
(= name "clojure")
(abort "Sorry, clojure can't be used as a project name."
"\nIt will confuse Clojure compiler and cause obscure issues.")