Skip to content

Commit d0120c3

Browse files
committed
Add clj-kondo to the CI
1 parent 1eb64a8 commit d0120c3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/clojure.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
- uses: actions/checkout@v2
1010
- name: Install dependencies
1111
run: lein -U deps
12+
- name: Lint code
13+
run: lein clj-kondo
1214
- name: Run tests
1315
run: lein test
1416
- name: Deploy

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ pom.xml.asc
1212
.hg/
1313
/grape
1414
/grape-*
15+
.clj-kondo/.cache

test/grape/impl/match_test.clj

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(ns grape.impl.match-test
22
(:require [clojure.test :refer :all]
3-
[grape.impl.match :as match]
4-
[grape.impl.match :as m]))
3+
[grape.impl.match :as match]))
54

65
(deftest parse-pattern-test
76
(testing "leading whitespace and comments"
@@ -22,7 +21,7 @@
2221
(deftest match-multi-wildcards?-test
2322
(testing "matches"
2423
(are [trees nodes]
25-
(#'m/match-multi-wildcards? trees nodes)
24+
(#'match/match-multi-wildcards? trees nodes)
2625
[] [(list :symbol "$keyword&")]
2726
[] [(list :symbol "$&")]
2827
[(list :keyword "foo") (list :map)] [(list :symbol "$&")]
@@ -31,7 +30,7 @@
3130

3231
(testing "mismatches"
3332
(are [trees nodes]
34-
(not (#'m/match-multi-wildcards? trees nodes))
33+
(not (#'match/match-multi-wildcards? trees nodes))
3534
[(list :keyword "foo") (list :map)] [(list :symbol "$map&") (list :symbol "$&")]
3635
[(list :keyword "a") (list :keyword "b") (list :keyword "c")] [(list :symbol "$number&")])))
3736

@@ -42,7 +41,7 @@
4241
sym (list :symbol "bar")]
4342
(testing "matches"
4443
(are [trees patterns]
45-
(#'m/match-seq? trees patterns)
44+
(#'match/match-seq? trees patterns)
4645
[] []
4746
[] [$&]
4847
[] [$& $&]
@@ -57,7 +56,7 @@
5756

5857
(testing "mismatches"
5958
(are [trees patterns]
60-
(not (#'m/match-seq? trees patterns))
59+
(not (#'match/match-seq? trees patterns))
6160
[kw kw kw kw sym] [(list :symbol "$keyword&")]
6261
))))
6362

0 commit comments

Comments
 (0)