Re: Eastwood the Clojure lint tool version 0.2.0

2014-11-18 Thread John Wiseman
Excellent, thank you.  The unwieldy default output format was the main
thing stopping me from investigating eastwood.


On Tue, Nov 18, 2014 at 8:41 AM, Andy Fingerhut 
wrote:

> Eastwood is a Clojure lint tool.  It analyzes Clojure (on the JVM) source
> code, reporting things that may be errors.
>
> Installation instructions are in the documentation here:
>
> https://github.com/jonase/eastwood#installation--quick-usage
>
> Updates since the last release are described in the change log here:
>
>
> https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-015-to-020
>
> My #1 favorite change in this release was probably the simplest one to
> make: change the default output format for warnings so they are 1 per line,
> FILE:LINE:COL: MSG, a format used by Emacs and Vim from other compilers and
> they have special modes for quickly stepping from one warning to the next
> in one window, while jumping to the file/line/column specified in another.
> Very handy.  I should have done it months ago.  See [1] for details.  If
> anyone wants to help add instructions are a different file format for other
> text editors, please email me or open an issue on GitHub.
>
> There has been significant effort put into making the Eastwood docs
> informative.  If you get a warning and it is not obvious what it means, I
> encourage you to go to [2], then click on the [more] link for the linter in
> question.  This takes you to what is often a page or more of text
> describing the warning, why it occurs, and sometimes suggestions on what
> you can do about it.
>
> A few of the other bigger changes made were:
>
>-
>
>Enhanced :suspicious-expression linter so it always uses macroexpanded
>forms, not original source forms. Thus it no longer produces incorrect
>warnings for expressions using -> or ->> like (-> 1 (= 1)), as it used
>to.
>-
>
>New linter :constant-test that warns when a test expression in an if,
>cond, if-let, etc. is obviously a constant, or a literal collection
>that will always evaluate as true.
>-
>
>New linter :unused-meta-on-macro that warns when metadata is used to
>annotate a macro invocation, but the Clojure compiler will ignore it
>because it is discarded during macro expansion.
>-
>
>New linter :unused-locals that warns when a let binds values to
>symbols, but those symbols are never used. Disabled by default.
>
> Go squash some bugs!
>
> Jonas Enlund, Nicola Mometto, and Andy Fingerhut
>
>
> [1] https://github.com/jonase/eastwood#editor-support
> [2] https://github.com/jonase/eastwood#whats-there
>
>  --
> 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/d/optout.
>

-- 
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/d/optout.


Eastwood the Clojure lint tool version 0.2.0

2014-11-18 Thread Andy Fingerhut
Eastwood is a Clojure lint tool.  It analyzes Clojure (on the JVM) source
code, reporting things that may be errors.

Installation instructions are in the documentation here:

https://github.com/jonase/eastwood#installation--quick-usage

Updates since the last release are described in the change log here:


https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-015-to-020

My #1 favorite change in this release was probably the simplest one to
make: change the default output format for warnings so they are 1 per line,
FILE:LINE:COL: MSG, a format used by Emacs and Vim from other compilers and
they have special modes for quickly stepping from one warning to the next
in one window, while jumping to the file/line/column specified in another.
Very handy.  I should have done it months ago.  See [1] for details.  If
anyone wants to help add instructions are a different file format for other
text editors, please email me or open an issue on GitHub.

There has been significant effort put into making the Eastwood docs
informative.  If you get a warning and it is not obvious what it means, I
encourage you to go to [2], then click on the [more] link for the linter in
question.  This takes you to what is often a page or more of text
describing the warning, why it occurs, and sometimes suggestions on what
you can do about it.

A few of the other bigger changes made were:

   -

   Enhanced :suspicious-expression linter so it always uses macroexpanded
   forms, not original source forms. Thus it no longer produces incorrect
   warnings for expressions using -> or ->> like (-> 1 (= 1)), as it used
   to.
   -

   New linter :constant-test that warns when a test expression in an if,
   cond, if-let, etc. is obviously a constant, or a literal collection that
   will always evaluate as true.
   -

   New linter :unused-meta-on-macro that warns when metadata is used to
   annotate a macro invocation, but the Clojure compiler will ignore it
   because it is discarded during macro expansion.
   -

   New linter :unused-locals that warns when a let binds values to symbols,
   but those symbols are never used. Disabled by default.

Go squash some bugs!

Jonas Enlund, Nicola Mometto, and Andy Fingerhut


[1] https://github.com/jonase/eastwood#editor-support
[2] https://github.com/jonase/eastwood#whats-there

-- 
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/d/optout.