yagni icon indicating copy to clipboard operation
yagni copied to clipboard

A Leiningen plugin for finding dead code

Results 10 yagni issues
Sort by recently updated
recently updated
newest added

I have tried to run `lein yagni` on a very small `cljs` project: https://github.com/viebel/cljs-explore And nothing happened. The `cljs` files are not parsed.

enhancement
ClojureScript

In the following code `try-parse-num` is flagged as unused: ```clojure (defn- try-parse-num "Attempt to parse a num-string. Returns nil if fails, or num otherwise. Takes parse-fn and num-str" [parse-fn num-str]...

Looks like yagni is choking on conditionals in cljc files. This isn't a CLJS project, as it's running on the JVM, but it shares code with someone that runs on...

For the following code, both `ISO-date-format` and `java->joda-local-date` are flagged as being unused. ```clojure (def ISO-date-format (tf/formatter "yyyy-MM-dd")) (defn java->joda-local-date [java-local-date] (tf/parse-local-date ISO-date-format (.toString java-local-date))) ;; Prevent default behaviour of...

Having a function: ``` (defn- somefunction "cool doc" [arg] ... do funky stuff ...) ``` and and a clojure spec: ``` (spec/def ::speckey (spec/and #(contains? % :specialkey) #(somefunction (:specialkey %)))...

This PR exists to track the `0.1.5` branch.

This has been bothering me for a while, but I'm starting to get to the point where it's really annoying me. Maintaining separate directories for the test project and the...

enhancement

i.e. dealing with `data_readers.clj` (Thanks for the project, it's already proving useful to me)

enhancement

Right now Yagni just takes `lein yagni` as its invocation - I think it would be nice to have both a `check` and `fix`, and since `fix` might take a...

enhancement

Knowing where your problems are is great, but being able to automatically fix them is better. I see this being modeled after cljfmt, which has both `check` and `fix` command...

enhancement