Skip to content

Commit

Permalink
fix clj-kondo linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Oct 16, 2024
1 parent 2eb42fc commit e78a7d4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .clj-kondo/config.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{:linters
{:unresolved-symbol
{:exclude [(sierpinski-sieve.macros/forloop)]}}}
2 changes: 1 addition & 1 deletion .github/workflows/continuous-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
bb: latest

- name: Lint
run: clojure -M:clj-kondo --lint src test
run: clojure -M:clj-kondo --lint src

publish:
name: Publish
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pom.xml
.cljs_rhino_repl/*
/.cpcache/
/static-site/
/.clj-kondo/.cache/
2 changes: 1 addition & 1 deletion src/sierpinski_sieve/blit.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(doseq [[x value] (map-indexed vector row)]
(let [disp-x (+ (int (* (- size y) 0.5)) x)
p (* (+ y-offset disp-x) 4)]
(if (odd? value)
(when (odd? value)
(aset pixel-data (+ p 3) 0))))))

(defn paint [canvas-id size sieve]
Expand Down

0 comments on commit e78a7d4

Please sign in to comment.