Skip to content

Conversation

cichli
Copy link
Contributor

@cichli cichli commented Mar 30, 2015

Hi, first of all - thanks for open sourcing clj-debugger!

This patch fixes some warnings raised by the eastwood lint tool, and makes a slight modification to allow eastwood to lint the project (and any project dependent on it) without erroring.

The root of the problem is that tools.analyzer, which eastwood uses to analyze Clojure code, provides an &env of a different shape to that of clojure.lang.Compiler (see TANAL-13) - so we now filter out any key-value pairs that do not have a value of type clojure.lang.Compiler$LocalBinding (i.e. for normal usage we filter out nothing; this only has an affect when tools.analyzer in play).

cichli added 5 commits March 29, 2015 22:18
This has no impact on normal usage, but allows for linting of the
library with eastwood (since eastwood uses tools.analyzer.jvm, which is
incompatible with macros that use Clojure's default &env).
@bbatsov
Copy link
Contributor

bbatsov commented Apr 2, 2015

Nice work! 👍

@bbatsov
Copy link
Contributor

bbatsov commented Apr 4, 2015

@razum2um Anything wrong with the PR?

razum2um added a commit that referenced this pull request Apr 7, 2015
Make library lintable using eastwood
@razum2um razum2um merged commit 80c984f into razum2um:master Apr 7, 2015
@razum2um
Copy link
Owner

razum2um commented Apr 7, 2015

@cichli cool, besides, I haven't used eastwood before, thanks for that!

@bbatsov
Copy link
Contributor

bbatsov commented Apr 7, 2015

@razum2um It'd be great if you can cut a new release for us. :-)

@razum2um
Copy link
Owner

razum2um commented Apr 7, 2015

@bbatsov 0.1.7

@cichli
Copy link
Contributor Author

cichli commented Apr 7, 2015

@razum2um thanks a lot!

@cichli cichli deleted the fix-eastwood branch April 7, 2015 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants