Skip to content

tvaisanen/clj-kondo-malli-error-2022-12-20

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validate malli/#830 fix

{:paths ["src"]
 :deps  {metosin/malli {:git/url "https://github.com/tvaisanen/malli"
                        :git/sha "852d7c3fd445071ae66165f8382e486fe3a8343f"}}
 :aliases {:generate-types {:exec-fn core/run}}}

Steps To Validate

Generate types

❯ clj -X:generate-types
started instrumentation

Check types

❯ cat .clj-kondo/metosin/malli-types-clj/config.edn
{:linters
 {:unresolved-symbol {:exclude [(malli.core/=>)]},
  :type-mismatch
  {:namespaces
   {core {foo {:arities {2 {:args [{:op :keys, :req {:keys :seqable}} :any],
                            :ret :any}}},
          case-1 {:arities {1 {:args [{:op :keys, :req {:keys :seqable}}],
                               :ret :nil}}},
          case-2 {:arities {1 {:args [{:op :keys, :req {:keys :seqable}}],
                               :ret :nil}}},
          case-3 {:arities {1 {:args [{:op :keys, :req {:keys :seqable}}],
                               :ret :nil}}}}}}}}

Run lint

❯ clj-kondo --lint src/core.cljc
linting took 12ms, errors: 0, warnings: 0

About

minimal error repro for a clj-kondo / malli issue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%