Skip to content

Commit f875aa3

Browse files
vemvbbatsov
authored andcommitted
Upgrade Eastwood
1 parent e30c287 commit f875aa3

File tree

4 files changed

+21
-58
lines changed

4 files changed

+21
-58
lines changed

.circleci/config.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,12 @@ jobs:
8989
Running utility commands/checks (linter etc.)
9090
Always uses Java11 and Clojure 1.10
9191
parameters:
92+
jdk_version:
93+
description: Version of JDK to test against
94+
type: string
9295
steps:
9396
type: steps
94-
executor: openjdk11
97+
executor: << parameters.jdk_version >>
9598
environment:
9699
VERSION: "1.10"
97100
steps:
@@ -191,7 +194,16 @@ workflows:
191194
clojure_version: "master"
192195
jdk_version: openjdk15
193196
- util_job:
194-
name: Code Linting
197+
name: Code Linting, JDK8 (Eastwood only)
198+
jdk_version: openjdk8
199+
steps:
200+
- run:
201+
name: Running Eastwood
202+
command: |
203+
make eastwood
204+
- util_job:
205+
name: Code Linting, (latest LTS JDK)
206+
jdk_version: openjdk11
195207
steps:
196208
- run:
197209
name: Running Eastwood

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ test:
1313
test-watch: test-resources/clojuredocs/export.edn
1414
lein with-profile +$(VERSION),$(TEST_PROFILES) test-refresh
1515

16-
# Eastwood can't handle orchard.java.legacy-parser at the moment, because
17-
# tools.jar isn't in the classpath when Eastwood runs.
18-
1916
eastwood:
20-
lein with-profile +$(VERSION),+eastwood,$(TEST_PROFILES) eastwood \
21-
"{:exclude-namespaces [orchard.java.legacy-parser]}"
17+
lein with-profile +$(VERSION),+eastwood,$(TEST_PROFILES) eastwood
2218

2319
cljfmt:
2420
lein with-profile +$(VERSION),+cljfmt cljfmt check

eastwood.clj

Lines changed: 0 additions & 49 deletions
This file was deleted.

project.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,9 @@
5757
merge-meta [[:inner 0]]
5858
letfn [[:block 1] [:inner 2]]}}}
5959

60-
:eastwood {:plugins [[jonase/eastwood "0.3.4"]]
61-
:eastwood {:config-files ["eastwood.clj"]}}})
60+
:eastwood {:plugins [[jonase/eastwood "0.4.0"]]
61+
:eastwood {:exclude-namespaces [~(if (-> "java.version"
62+
System/getProperty
63+
(.contains "1.8."))
64+
'orchard.java.parser
65+
'orchard.java.legacy-parser)]}}})

0 commit comments

Comments
 (0)