title: clj-condo redefined-var warning for redefined factory function of record
body: <p>I am using a <a href="https://clojuredocs.org/clojure.core/defrecord" rel="nofollow noreferrer">defrecord</a> form to define a type in Clojure:</p>
  <pre><code>(defrecord HideTableColumnMarker [columns-resize]
    ControlMarker)
  </code></pre>
  <p>But I am not happy with the default factory function function from the defrecord form, so I overwrite it with my own implementation to provide a 0-arity:</p>
  <pre><code>(defn -&gt;HideTableColumnMarker
    ([] (HideTableColumnMarker. :cut))
    ([x] (HideTableColumnMarker. x)))
  </code></pre>
  <p>Running clj-kondo gives a <a href="https://github.com/clj-kondo/clj-kondo/blob/64bdf9fd72eda271372ff0145270ac7dbee9ff54/doc/linters.md#redefined-var" rel="nofollow noreferrer">redefined-var</a> error:</p>
  <pre><code>src/stencil/types.clj:28:1: warning: redefined var #'stencil.types/-&gt;HideTableColumnMarker
  </code></pre>
  <p>Which makes sense but I did it on purpose. I have tried to <code>undef</code> the var from the namespace before the <code>defn</code> form but the warning message remains. How can I fix the warning without changing the configuration for clj-kondo?</p>