This is really nice! 
I just added it to my lein profile so I can use it to test my software. I 
was testing it and I got this output:

WARNING (Dynalint id 1):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 2):  clojure.core/select-keys first argument should be 
a map: nil
WARNING (Dynalint id 3):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 4):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 5):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 6):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 7):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 8):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 9):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 10):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 11):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 12):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 13):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 14):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 15):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 16):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 17):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 18):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 19):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 20):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 21):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 22):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 23):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 24):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 25):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 26):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 27):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 28):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 29):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 30):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 31):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 32):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 33):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 34):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 35):  clojure.set/union should have set arguments: nil
WARNING (Dynalint id 36):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 37):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 38):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 39):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 40):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 41):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 42):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 43):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 44):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 45):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 46):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 47):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 48):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 49):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 50):  clojure.core/dissoc first argument should be a 
map: nil
WARNING (Dynalint id 51):  clojure.core/dissoc first argument should be a 
map: nil

What is this referring to? Is there a way to find out which lines of code 
it's actually talking about? 
Thank you very much for yet another great tool!

Morg.

On Saturday, January 11, 2014 3:46:40 PM UTC+1, Ambrose Bonnaire-Sergeant 
wrote:
>
> Hi,
>
> For those who like analysing their programs I present Dynalint, a 
> simplistic "linter". It's essentially a bunch of manually curated runtime 
> warnings and errors for the core Clojure library.
>
> https://github.com/frenchy64/dynalint
>
> Please read the README for instructions and caveats.
>
> Here's the gist:
>
> user=> (require '[dynalint.lint :as dyn])
> nil
> user=> (dyn/lint)
> :ok
> user=> (require '[clojure.set :as set])
> nil
> user=> (set/union #{1} nil)
> WARNING (Dynalint id 1):  clojure.set/union should have set arguments: nil
> #{1}
> user=> (vals nil)
> nil
> user=> (vals 1)
> ExceptionInfo ERROR (Dynalint id 2): First argument to clojure.core/vals 
> must be seqable: 1  clojure.core/ex-info (core.clj:4327)
>
> user=> (update-in {} [] identity)
> WARNING (Dynalint id 3):  clojure.core/update-in key path should be 
> non-empty: []
> {nil nil}
>
>
> Also lein-dynalint is a Leiningen plugin which some might find helpful.
>
> https://github.com/frenchy64/lein-dynalint
>
> Enjoy!
> Ambrose
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to