tolitius / mount

managing Clojure and ClojureScript app state since (reset)
Eclipse Public License 1.0
1.23k stars 89 forks source link

Clj-kondo incorrect warning when using docstring for defstate #135

Closed Kaspazza closed 1 day ago

Kaspazza commented 2 months ago

Having defstate like that (which is also mentioned as valid in README):

(defstate "my doc" :start (try ...) :stop (when ...))

Will raise clj-kondo warning saying: lifecycle functions can only contain :start and :stop. illegal function found:

Removing docstring

(defstate  :start (try ...) :stop (when ...))

removes the warning.