-
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
1 parent
f862ecb
commit 576d574
Showing
10 changed files
with
689 additions
and
356 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{:config-paths ["../resources/clj-kondo.exports/io.github.noahtheduke/lazytest"] | ||
:cljc {:features [:clj]} | ||
:linters {:clojure-lsp/unused-public-var {:level :off} | ||
:unused-binding {:exclude-patterns ["^this"]}}} |
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
31 changes: 31 additions & 0 deletions
31
.clj-kondo/imports/io.github.noahtheduke/lazytest/hooks/lazytest/expectations.clj_kondo
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,31 @@ | ||
;; Copied from https://github.com/clojure-expectations/clojure-test/blob/b90ed5b24924238b3b16b0bbaaee4c3b05a1268a | ||
|
||
(ns hooks.lazytest.expectations | ||
(:require [clj-kondo.hooks-api :as api])) | ||
|
||
(defn more-> [{:keys [node]}] | ||
(let [tail (rest (:children node)) | ||
rewritten | ||
(api/list-node | ||
(list* | ||
(api/token-node 'cond->) | ||
(api/token-node 'nil) | ||
tail))] | ||
{:node rewritten})) | ||
|
||
(defn more-of [{:keys [node]}] | ||
(let [bindings (fnext (:children node)) | ||
pairs (partition 2 (nnext (:children node))) | ||
rewritten | ||
(api/list-node | ||
(list* | ||
(api/token-node 'fn) | ||
(api/vector-node (vector bindings)) | ||
(map (fn [[e a]] | ||
(api/list-node | ||
(list | ||
(api/token-node 'lazytest.core/expect) | ||
e | ||
a))) | ||
pairs)))] | ||
{:node rewritten})) |
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,12 +1,24 @@ | ||
{ | ||
"doc/*.md": {"type": "doc"}, | ||
"README.md": {"type": "doc"}, | ||
"src/clojure/*.clj": { | ||
"type": "source", | ||
"alternate": "test/clojure/{}_test.clj" | ||
}, | ||
"test/clojure/*_test.clj": { | ||
"type": "test", | ||
"alternate": "src/clojure/{}.clj" | ||
} | ||
"doc/*.md": { | ||
"type": "doc" | ||
}, | ||
"README.md": { | ||
"type": "doc" | ||
}, | ||
"src/clojure/*.clj": { | ||
"type": "source", | ||
"alternate": "test/clojure/{}_test.clj" | ||
}, | ||
"src/clojure/*.cljc": { | ||
"type": "source", | ||
"alternate": "test/clojure/{}_test.cljc" | ||
}, | ||
"test/clojure/*_test.clj": { | ||
"type": "test", | ||
"alternate": "src/clojure/{}.clj" | ||
}, | ||
"test/clojure/*_test.cljc": { | ||
"type": "test", | ||
"alternate": "src/clojure/{}.cljc" | ||
} | ||
} |
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
31 changes: 31 additions & 0 deletions
31
...es/clj-kondo.exports/io.github.noahtheduke/lazytest/hooks/lazytest/expectations.clj_kondo
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,31 @@ | ||
;; Copied from https://github.com/clojure-expectations/clojure-test/blob/b90ed5b24924238b3b16b0bbaaee4c3b05a1268a | ||
|
||
(ns hooks.lazytest.expectations | ||
(:require [clj-kondo.hooks-api :as api])) | ||
|
||
(defn more-> [{:keys [node]}] | ||
(let [tail (rest (:children node)) | ||
rewritten | ||
(api/list-node | ||
(list* | ||
(api/token-node 'cond->) | ||
(api/token-node 'nil) | ||
tail))] | ||
{:node rewritten})) | ||
|
||
(defn more-of [{:keys [node]}] | ||
(let [bindings (fnext (:children node)) | ||
pairs (partition 2 (nnext (:children node))) | ||
rewritten | ||
(api/list-node | ||
(list* | ||
(api/token-node 'fn) | ||
(api/vector-node (vector bindings)) | ||
(map (fn [[e a]] | ||
(api/list-node | ||
(list | ||
(api/token-node 'lazytest.core/expect) | ||
e | ||
a))) | ||
pairs)))] | ||
{:node rewritten})) |
Oops, something went wrong.