Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kondo warning and errors #257

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
:main-opts ["-m" "clj-check.check"]}

:kondo
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2022.05.31"}}
:main-opts ["-m" "clj-kondo.main" "--lint" "src"]}
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2023.09.07"}}
:main-opts ["-m" "clj-kondo.main" "--lint" "src" "test"]}

:codox {:extra-deps {codox/codox {:mvn/version "0.10.8"}}
:extra-paths ["resources"]
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/config_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.config-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[xiana.config :as config]))

(def config-map (config/config))
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/interceptor/muuntaja_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns xiana.interceptor.muuntaja-test
(:require
[clojure.string :as str]
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[muuntaja.format.core :as format]
[xiana.interceptor.muuntaja :as muuntaja]))

Expand Down
4 changes: 2 additions & 2 deletions test/xiana/interceptor/queue_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.interceptor.queue-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is testing]]
[xiana.interceptor.queue :as queue]))

(def A-interceptor
Expand Down Expand Up @@ -202,7 +202,7 @@
(= last-leave "F-leave")
(= response expected)))))

(deftest queue-both-interceptors-execution
(deftest queue-both-interceptors-execution-test
(let [state (make-state ok-action except-interceptors)
result (queue/execute state default-interceptors)
response (:response result)
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/interceptor/wrap_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.interceptor.wrap-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest function? is]]
[muuntaja.middleware :as middleware]
[xiana.interceptor.wrap :as wrap])
(:import
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/interceptor_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.interceptor-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is testing]]
[xiana.db :as db]
[xiana.interceptor :as interceptor]
[xiana.session :as session]))
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/rbac/interceptor_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.rbac.interceptor-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[honeysql.helpers :as sql]
[tiny-rbac.builder :as b]
[xiana.rbac :refer [interceptor]]
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/route/helpers_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.route.helpers-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[xiana.route.helpers :as helpers]))

(defn test-handler
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/route_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.route-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[xiana.route :as route]
[xiana.route.helpers :as helpers]
[xiana.state :as state]))
Expand Down
5 changes: 3 additions & 2 deletions test/xiana/session_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.session-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[xiana.session :as session])
(:import
(java.util
Expand All @@ -22,7 +22,8 @@
(deftest session-protocol-delete!
(let [user-id (session/fetch session-instance :user-id)]
;; remove user identification
(session/delete! session-instance :user-id)
(when user-id
(session/delete! session-instance :user-id))
;; verify if was removed
(is (nil? (session/fetch session-instance :user-id)))))

Expand Down
2 changes: 1 addition & 1 deletion test/xiana/state_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.state-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[xiana.state :as state]))

(def state-initial-map
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/web_socket/integration_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns xiana.web-socket.integration-test
(:require
[clj-http.client :as client]
[clojure.test :refer :all]
[clojure.test :refer [deftest is use-fixtures]]
[http.async.client :as a-client]
[taoensso.timbre :as log]
[xiana-fixture :as fixture]
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/web_socket/router_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns xiana.web-socket.router-test
(:require
[clojure.data.json :as json]
[clojure.test :refer :all]
[clojure.test :refer [deftest is]]
[reitit.core :as r]
[xiana.interceptor :as interceptors]
[xiana.websockets :refer [router]]))
Expand Down
2 changes: 1 addition & 1 deletion test/xiana/webserver_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns xiana.webserver-test
(:require
[clojure.test :refer :all]
[clojure.test :refer [deftest function? is]]
[xiana.handler :refer [handler-fn]]
[xiana.route :as route]))

Expand Down
Loading