Skip to content

Commit

Permalink
Provide linter support for user-defined widget directives. (#340)
Browse files Browse the repository at this point in the history
* Analysis for user directives in clj-kondo hook.

* Update resources/clj-kondo.exports/tensegritics/clojuredart/hooks/flutter2.clj

---------

Co-authored-by: Christophe Grand <[email protected]>
  • Loading branch information
samcf and cgrand authored Feb 13, 2025
1 parent 82d9071 commit 50c163d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@
:managed (managed-vector-node->let-binding-nodes node-val)
:watch (watch-vector-node->let-binding-nodes node-val)
:bg-watcher [[(token-node '_) (vector-node->bg-watcher-node node-val)]]
;; unsupported keys ignored
[]))
(if (qualified-keyword? (sexpr node-key)) ; not the right place, TODO: reorg the widget function below to be recursive and hopefully both simpler and closer to the actual behavior
[[(token-node '_) (token-node (symbol (sexpr node-key)))]
[(token-node '_) node-val]]
[])))

(defn nest-body
[[head & tail]]
Expand Down

0 comments on commit 50c163d

Please sign in to comment.