8000 unused-namespaces false positive with vars marked ^:const · Issue #192 · jonase/eastwood · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
unused-namespaces false positive with vars marked ^:const #192
Closed
@camsaul

Description

@camsaul

It looks like the :unused-namespaces linter is giving false positives when only constants are used from another namespace.

Example:

a.clj
(ns proj.a)

(def ^:const version "1.0.0")
b.clj
(ns proj.b
  (:require [proj.a :as a]))

(defn project-info []
   {:version a/version})
Error
src/proj/b.clj:1:1: unused-namespaces: Namespace proj.a is never used in proj.b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0