File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 66
66
with-debug-bindings [[:inner 0 ]]
67
67
merge-meta [[:inner 0 ]]
68
68
try-if-let [[:block 1 ]]}}}]
69
- :eastwood {:plugins [[jonase/eastwood " 0.9.1 " ]]
69
+ :eastwood {:plugins [[jonase/eastwood " 0.9.9 " ]]
70
70
:eastwood {; ; vendored - shouldn't be tweaked for satisfying linters:
71
71
:exclude-namespaces [refactor-nrepl.ns.slam.hound.regrow]
72
72
; ; :implicit-dependencies would fail spuriously when the CI matrix runs for Clojure < 1.10,
73
73
; ; because :implicit-dependencies can only work for a certain corner case starting from 1.10.
74
74
:exclude-linters [:implicit-dependencies ]
75
+ :add-linters [:performance :boxed-math ]
75
76
:config-files [" eastwood.clj" ]}}
76
77
:clj-kondo [:test
77
78
{:dependencies [[clj-kondo " 2021.06.18" ]]}]}
Original file line number Diff line number Diff line change 37
37
[]
38
38
(or (empty? @artifacts)
39
39
(if-let [last-modified (some-> artifacts meta :last-modified )]
40
- (neg? (- millis-per-day (- (.getTime (java.util.Date. )) last-modified)))
40
+ (neg? (- (long millis-per-day)
41
+ (long (- (.getTime (java.util.Date. ))
42
+ (long last-modified)))))
41
43
true )))
42
44
43
45
(defn- edn-read-or-nil
Original file line number Diff line number Diff line change 293
293
(let [^clojure.lang.PersistentVector gen-class (some-> ns-form
294
294
(get-ns-component :gen-class )
295
295
vec)
296
- methods_index (inc ( if-not (nil? gen-class)
297
- ( .indexOf gen-class :methods )
298
- -1 ) )]
296
+ methods_index (if-not (nil? gen-class)
297
+ ( -> gen-class ( .indexOf :methods ) inc )
298
+ 0 )]
299
299
(if-not (zero? methods_index)
300
300
(apply merge (map #(meta %) (nth gen-class methods_index)))
301
301
nil )))
406
406
" Guard the evaluation of `body` with a test on the current clojure version."
407
407
{:style/indent 1 }
408
408
[{:keys [major minor] :as _clojure-version} & body]
409
- (when (or (> (:major *clojure-version*) major)
410
- (and (= (:major *clojure-version*) major)
411
- (>= (:minor *clojure-version*) minor)))
412
- `(do ~@body)))
409
+ (let [major (long major)
410
+ minor (long minor)]
411
+ (when (or (> (-> *clojure-version* :major long) major)
412
+ (and (= (-> *clojure-version* :major long) major)
413
+ (>= (-> *clojure-version* :minor long) minor)))
414
+ `(do ~@body))))
You can’t perform that action at this time.
0 commit comments