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

False positive :unused-private-var warning for deftype ^:private #1222

Closed
Valdermeyder opened this issue Mar 19, 2021 · 0 comments
Closed

False positive :unused-private-var warning for deftype ^:private #1222

Valdermeyder opened this issue Mar 19, 2021 · 0 comments

Comments

@Valdermeyder
Copy link

version

v2021.03.03

problem

False positive :unused-private-var warning for deftype ^:private event it used inside the namespace

repro

(deftype ^:private SessionStore
  [session-service])

(defn db-store [this]
  (SessionStore. this))

Error "warning: Unused private var user/->SessionStore"

** configuration workaround **
:unused-private-var {:exclude [user/->SessionStore]}

expected behavior

No warning message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants