Skip to content

clj-kondo fails on o/defstyled #31

@credmp

Description

@credmp

Thanks for the great package, really love it. clj-kondo shows it a little less love though.

I copied over the clj-kondo config from the repository, which removes a lot of errors already, however this snippet:

(ns comicstash.html.dashboard
  (:require
   [lambdaisland.ornament :as o]))

(o/defstyled collection-section :section
  :view-section :active :fade-in)

so, a simple defstyled, will generate a namespace level error saying:

error: Can't parse ./src/clj/comicstash/html/dashboard.clj, java.lang.Boolean cannot be cast to clojure.lang.Associative

and as a result the styles defined in the file are not resolved. Any help tracking down the reason for the error is appreciated, My guess is that it is in the ornament.clj in the clj-kondo hooks, but I have 0 experience in this domain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions