-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
58 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
;;; SPDX-FileCopyrightText: 2024 Jomco B.V. | ||
;;; SPDX-FileContributor: Joost Diepenmaat <[email protected]> | ||
;;; | ||
;;; SPDX-License-Identifier: MIT | ||
|
||
{:lint-as {nl.jomco.resources/with-resources clojure.core/with-open | ||
nl.jomco.resources/mk-system clojure.core/let | ||
nl.jomco.resources/defresource clojure.core/def}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{:hooks | ||
{:analyze-call | ||
{taoensso.encore/defalias taoensso.encore/defalias | ||
taoensso.encore/defn-cached taoensso.encore/defn-cached}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
(ns taoensso.encore | ||
"I don't personally use clj-kondo, so these hooks are | ||
kindly authored and maintained by contributors. | ||
PRs very welcome! - Peter Taoussanis" | ||
(:require | ||
[clj-kondo.hooks-api :as hooks])) | ||
|
||
(defn defalias | ||
[{:keys [node]}] | ||
(let [[sym-raw src-raw] (rest (:children node)) | ||
src (if src-raw src-raw sym-raw) | ||
sym | ||
(if src-raw | ||
sym-raw | ||
(symbol (name (hooks/sexpr src))))] | ||
|
||
{:node | ||
(with-meta | ||
(hooks/list-node | ||
[(hooks/token-node 'def) | ||
(hooks/token-node (hooks/sexpr sym)) | ||
(hooks/token-node (hooks/sexpr src))]) | ||
(meta src))})) | ||
|
||
(defn defn-cached | ||
[{:keys [node] :as x}] | ||
(let [[sym _opts binding-vec & body] (rest (:children node))] | ||
{:node | ||
(hooks/list-node | ||
(list | ||
(hooks/token-node 'def) | ||
sym | ||
(hooks/list-node | ||
(list* | ||
(hooks/token-node 'fn) | ||
binding-vec | ||
body))))})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.clj-kondo/ | ||
.clj-kondo/.cache | ||
.cpcache/ | ||
.idea/ | ||
validator-service.iml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters