Yagni – Leiningen plugin for finding dead code

Yagni is a static code analyzer that helps you find unused code in your applications and libraries.

Yagni works by identifying all of the interned vars and declared Java classes in the namespaces findable within your :source-paths, and then walking the forms of those vars and declarations.

As it walks the forms, it builds a graph of references to other vars and declarations. It then searches the graph from a set of entrypoints (by default your project’s :main method), and emits warnings for anything that it couldn’t find in the graph’s search.

This is free and open source software.

Website: github.com/venantius/yagni
Support:
Developer: W. David Jarvis
License: Eclipse Public License

Yagni is written in Clojure. Learn Clojure with our recommended free books and free tutorials.


Related Software

Clojure Linter Tools
kibitStatic code analyzer for Clojure, ClojureScript, cljx and other Clojure variants
JokerSmall Clojure interpreter, linter and formatter
eastwoodInspects namespaces and reports possible problems
clj-kondoStatic analyzer and linter for Clojure
SplintFocuses on style and code shape
YagniLeiningen plugin for finding dead code
lein-bikeshedLeiningen plugin

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted