duck1123/jiksnu

View on GitHub
src/jiksnu/modules/web/formats.clj

Summary

Maintainability
Test Coverage

Non-idiomatic code found in (-> response (assoc :body (h/html (:body response))))
Open

  (-> response
Severity: Minor
Found in src/jiksnu/modules/web/formats.clj by kibit

Consider using:

(assoc response :body (h/html (:body response)))

instead of:

(-> response (assoc :body (h/html (:body response))))

Non-idiomatic code found in (-> response (assoc-in [:headers "Content-Type"] "text/plain; charset=utf-8"))
Open

  (-> response
Severity: Minor
Found in src/jiksnu/modules/web/formats.clj by kibit

Consider using:

(assoc-in
  response
  [:headers "Content-Type"]
  "text/plain; charset=utf-8")

instead of:

(-> response
 (assoc-in [:headers "Content-Type"] "text/plain; charset=utf-8"))

There are no issues that match your filters.

Category
Status