Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-06-02 Thread Peter Hull
On Thursday, 1 June 2017 22:49:56 UTC+1, Andy Fingerhut wrote:
>
> I do not know whether you (Peter) are the same as the user pedro-w on 
> Github, 
>
Indeed I am the same. 
I've suggested something on the GH issue which is just a hack but may be 
helpful. I hope you'll appreciate that, coming to it fresh, the interaction 
of eastwood and leiningen and the target code takes a bit of pondering, so 
it will take me a while to get up to speed.

Pete

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-06-01 Thread Andy Fingerhut
I do not know whether you (Peter) are the same as the user pedro-w on
Github, but pedro-w created this Eastwood issue and added a comment with
links to a related discussion on a tools.reader issue tracker:
https://github.com/jonase/eastwood/issues/222

If you can find a way, with just tools.reader alone, to call
clojure.tools.reader/read in such a way that it first reads and uses the
contents of a data_readers.clj file, and then can successfully read the
sample .clj file in that issue #222 that causes Eastwood to fail now, that
sequence of API calls would be useful to know, and might be all that
Eastwood needs to work for projects with a non-empty data_readers.clj
file.  Adding that working sequence of API calls to Eastwood issue #222
would be a good place to document that, if someone finds out how to do it.


Yes, Eastwood does have source code copies of tools.reader and several
other open source libraries inside of itself, renamed to different
namespaces.  Why do such a crazy thing, you might reasonably ask?  Because
then Eastwood can read, analyze, and load tools.reader itself, without
conflicting with the one that Eastwood uses for its own purposes.  If a
project you want to lint via Eastwood is using an older version of
tools.reader, missing some function or feature Eastwood relies on, and
Eastwood didn't use this technique, it would fail on such a project.

I started 'dolly' (https://github.com/jafingerhut/dolly) to assist with
bringing new versions of libraries Eastwood depends upon into Eastwood,
renaming the namespaces semi-automatically for you.  It isn't in a shape
that I would recommend others to use right now, and it might never be in
that kind of shape, but it can do some things.  Its README mentions
mranderson as another similar project that might be better suited for
others.

Andy


On Thu, Jun 1, 2017 at 8:19 AM, Peter Hull  wrote:

> I had a quick look at this. As I understand it, the clojure.core reader
> processes data_readers.clj, but Eastwood uses tools.reader (or a version of
> it, copied into the Eastwood project?) which does not.
>
> I thought that, for linting, we don't need to actually run the data reader
> functions, so it should be possible to use the *default-data-reader-fn*
> mechanism to swallow the tag + value, returning 'something' (doesn't matter
> what, I used (gensym) ).
>
> I tried editing leiningen.eastwood/eastwood, but unfortunately couldn't
> find a way to set *default-data-reader-fn* such that tools.reader could
> pick it up. I am now at the limits of my clojur e knowledge!
>
> Does this sound reasonable? Any ideas what I am doing wrong?
>
> Pete
>
>
>
> On Thursday, 1 June 2017 07:19:04 UTC+1, Peter Hull wrote:
>>
>> On Thursday, 1 June 2017 06:55:52 UTC+1, Andy Fingerhut wrote:
>>>
>>> Sounds like a limitation/bug in the current Eastwood implementation that
>>> it doesn't handle this.  You are welcome to file an issue on Github:
>>> https://github.com/jonase/eastwood/issues
>>>
>>> Thanks for getting back to me. I've filed #222 (
>> https://github.com/jonase/eastwood/issues/222)
>> Pete
>>
>>
> --
> 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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-06-01 Thread Peter Hull
I had a quick look at this. As I understand it, the clojure.core reader 
processes data_readers.clj, but Eastwood uses tools.reader (or a version of 
it, copied into the Eastwood project?) which does not. 

I thought that, for linting, we don't need to actually run the data reader 
functions, so it should be possible to use the *default-data-reader-fn* 
mechanism to swallow the tag + value, returning 'something' (doesn't matter 
what, I used (gensym) ).

I tried editing leiningen.eastwood/eastwood, but unfortunately couldn't 
find a way to set *default-data-reader-fn* such that tools.reader could 
pick it up. I am now at the limits of my clojur e knowledge!

Does this sound reasonable? Any ideas what I am doing wrong?

Pete


On Thursday, 1 June 2017 07:19:04 UTC+1, Peter Hull wrote:
>
> On Thursday, 1 June 2017 06:55:52 UTC+1, Andy Fingerhut wrote:
>>
>> Sounds like a limitation/bug in the current Eastwood implementation that 
>> it doesn't handle this.  You are welcome to file an issue on Github: 
>> https://github.com/jonase/eastwood/issues
>>
>> Thanks for getting back to me. I've filed #222 (
> https://github.com/jonase/eastwood/issues/222)
> Pete
>  
>

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-06-01 Thread Peter Hull
On Thursday, 1 June 2017 06:55:52 UTC+1, Andy Fingerhut wrote:
>
> Sounds like a limitation/bug in the current Eastwood implementation that 
> it doesn't handle this.  You are welcome to file an issue on Github: 
> https://github.com/jonase/eastwood/issues
>
> Thanks for getting back to me. I've filed #222 
(https://github.com/jonase/eastwood/issues/222)
Pete
 

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-31 Thread Andy Fingerhut
Sounds like a limitation/bug in the current Eastwood implementation that it
doesn't handle this.  You are welcome to file an issue on Github:
https://github.com/jonase/eastwood/issues

Sorry, no promises on when it might be addressed.

Andy

On Wed, May 31, 2017 at 5:39 AM, Peter Hull  wrote:

> On Monday, 22 May 2017 01:51:32 UTC+1, David Cook wrote:
>>
>> Eastwood, the Clojure lint tool, version 0.2.4 has been released.  See
>> install instructions and complete documentation at [1].
>>
> Hi David and others,
> I tried this for the first time on my code and it found some errors
> (hooray!) but also failed to parse some files using tagged literals. Is
> this expected?
>
> As a minimal example I have
>
> === src/ewe/core.clj ===
> (ns ewe.core
>   (:gen-class))
>
> (defn ereader [x] (str "Make my " x ))
>
> (defn -main
>   "I don't do a whole lot ... yet."
>   [& args]
>   (println #ewe/E "day"))
> ===
>
> === src/data_readers.clj
> {ewe/E ewe.core/ereader}
> ===
>
> which runs OK with 'lein run' but with 'lein eastwood' gives:
>
> == Linting ewe.core ==
> Linting failed:
> ExceptionInfo No reader function for tag E
> clojure.core/ex-info (core.clj:4617)
> ...
>
> I am using clojure 1.8.0, fedora 25 (also tried Macos, same result)
>
> Thanks,
> Pete
>
>
> --
> 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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-31 Thread Travis Daudelin
Awesome replies everyone, thanks for the advice! Will definitely check 
these plugins out

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-31 Thread Duncan McGreggor
I use both all the time (part of the gating in the build process); they are
nicely complementary.

d

On 23 May 2017 at 11:16, Travis Daudelin  wrote:

>  Hi, thanks for posting this looks great!
>
> Is there any overlap in functionality between Eastwood and Kibit
> ? It's not clear to me which tool I
> should prefer nor when.
>
> --
> 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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-31 Thread Peter Hull
On Monday, 22 May 2017 01:51:32 UTC+1, David Cook wrote:
>
> Eastwood, the Clojure lint tool, version 0.2.4 has been released.  See 
> install instructions and complete documentation at [1].
>
Hi David and others,
I tried this for the first time on my code and it found some errors 
(hooray!) but also failed to parse some files using tagged literals. Is 
this expected?

As a minimal example I have

=== src/ewe/core.clj ===
(ns ewe.core
  (:gen-class))

(defn ereader [x] (str "Make my " x ))

(defn -main
  "I don't do a whole lot ... yet."
  [& args]
  (println #ewe/E "day"))
===

=== src/data_readers.clj
{ewe/E ewe.core/ereader}
===

which runs OK with 'lein run' but with 'lein eastwood' gives:

== Linting ewe.core ==
Linting failed:
ExceptionInfo No reader function for tag E
clojure.core/ex-info (core.clj:4617)
...

I am using clojure 1.8.0, fedora 25 (also tried Macos, same result)

Thanks,
Pete
 

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-24 Thread LaurentJ
Hi,

If you dont mind, just use them all  ;)
https://github.com/itang/lein-checkall


Le mardi 23 mai 2017 18:16:01 UTC+2, Travis Daudelin a écrit :
>
>  Hi, thanks for posting this looks great!
>
> Is there any overlap in functionality between Eastwood and Kibit 
> ? It's not clear to me which tool I 
> should prefer nor when.
>

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-23 Thread Andy Fingerhut
Eastwood analyzes your code to look for constructs that might be errors.

Kibit analyzes code to look for places where you could use Clojure macros
or functions that may make your code shorter, or more idiomatic.

Andy

On Tue, May 23, 2017 at 9:16 AM, Travis Daudelin 
wrote:

>  Hi, thanks for posting this looks great!
>
> Is there any overlap in functionality between Eastwood and Kibit
> ? It's not clear to me which tool I
> should prefer nor when.
>
> --
> 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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-23 Thread Travis Daudelin
 Hi, thanks for posting this looks great!

Is there any overlap in functionality between Eastwood and Kibit 
? It's not clear to me which tool I should 
prefer nor when.

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-21 Thread Andy Fingerhut
And I would hasten to add David Cook to the list of developers.  He has
done the coding, testing, and release steps except deploying to Clojars.
Thank you, David!

Andy

On Sun, May 21, 2017 at 5:46 PM, David Cook  wrote:

> Eastwood, the Clojure lint tool, version 0.2.4 has been released.  See
> install instructions and complete documentation at [1].
>
> Below are some of the changes since version 0.2.3.  A complete list is at
> [2].
>
> Go squash some bugs!
>
> Jonas Enlund, Nicola Mometto, and Andy Fingerhut
>
> [1] https://github.com/jonase/eastwood
> [2] https://github.com/jonase/eastwood/blob/master/changes.md#
> changes-from-version-023-to-024
>
>
> No new linters. Added initial support for .cljc files and reader
> conditionals.
>
>-
>
>Read .cljc files in addition to .clj files when scanning namespaces.
>-
>
>Handle reader conditionals by always parsing the :clj branch.
>-
>
>Allow ClojureScript-specific libspec entries, such as :include-macros
>true.
>
> --
> 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.


[ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-21 Thread David Cook
Eastwood, the Clojure lint tool, version 0.2.4 has been released.  See 
install instructions and complete documentation at [1].

Below are some of the changes since version 0.2.3.  A complete list is at 
[2].

Go squash some bugs!

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

[1] https://github.com/jonase/eastwood
[2] 
https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-023-to-024


No new linters. Added initial support for .cljc files and reader 
conditionals.

   - 
   
   Read .cljc files in addition to .clj files when scanning namespaces.
   - 
   
   Handle reader conditionals by always parsing the :clj branch.
   - 
   
   Allow ClojureScript-specific libspec entries, such as :include-macros 
   true.
   

-- 
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.


[ANN] Eastwood, the Clojure lint tool, version 0.2.3 released

2015-12-15 Thread Andy Fingerhut
Eastwood, the Clojure lint tool, version 0.2.3 has been released.  See
install instructions and complete documentation at [1].

Below are some of the changes since version 0.2.2.  A complete list is at
[2].

Go squash some bugs!

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

[1] https://github.com/jonase/eastwood
[2]
https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-022-to-023


No new linters. The only difference with 0.2.2 is a few bug fixes:

   -

   Ignore the contents of any file data_readers.clj in any directory of
   your classpath. Earlier versions of Eastwood would lint their contents, and
   by default complain that there was no ns form at the beginning. There
   should not be an ns form in such a file, and Eastwood no longer issues
   such incorrect warnings. Issue #172
   .
   -

   Eliminate an exception caused by Eastwood's unused-ret-vals and
   unused-ret-vals-in-try linters that could occur if a Java method cannot
   be resolved. Issue #173 .

-- 
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.


[ANN] Eastwood, the Clojure lint tool, version 0.2.2 released

2015-11-15 Thread Andy Fingerhut
Eastwood, the Clojure lint tool, version 0.2.2 has been released.  See
install instructions and complete documentation at [1].

Below are some of the changes since version 0.2.1.  A complete list is at
[2].

Go squash some bugs!

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

[1] https://github.com/jonase/eastwood
[2]
https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-021-to-022


New linter:

* New linter :wrong-pre-post that warns about several kinds of wrong or
suspicious preconditions or postconditions in a function.
https://github.com/jonase/eastwood#keyword-typos


Other enhancements and bug fixes:

* Updates to support Clojure 1.8.0-RC1.
* Several fixes to the bad-arglists linter.
* Picture of Clint Eastwood in the README.

-- 
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.


Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.2 released

2015-11-15 Thread Andy Fingerhut
Sorry, that link to the docs on the new wrong pre/post-condition linter
should have been: https://github.com/jonase/eastwood#wrong-pre-post

Andy

On Sun, Nov 15, 2015 at 1:25 PM, Andy Fingerhut 
wrote:

> Eastwood, the Clojure lint tool, version 0.2.2 has been released.  See
> install instructions and complete documentation at [1].
>
> Below are some of the changes since version 0.2.1.  A complete list is at
> [2].
>
> Go squash some bugs!
>
> Jonas Enlund, Nicola Mometto, and Andy Fingerhut
>
> [1] https://github.com/jonase/eastwood
> [2]
> https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-021-to-022
>
>
> New linter:
>
> * New linter :wrong-pre-post that warns about several kinds of wrong or
> suspicious preconditions or postconditions in a function.
> https://github.com/jonase/eastwood#keyword-typos
>
>
> Other enhancements and bug fixes:
>
> * Updates to support Clojure 1.8.0-RC1.
> * Several fixes to the bad-arglists linter.
> * Picture of Clint Eastwood in the README.
>
>

-- 
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.


[ANN] Eastwood, the Clojure lint tool, version 0.2.1 released

2014-12-22 Thread Andy Fingerhut
Eastwood, the Clojure lint tool, version 0.2.1 has been released.  See
install instructions and complete documentation at [1].

If you use Emacs+Cider or Eclipse+Counterclockwise development
environments, there are now add-ons that integrate Eastwood warnings,
thanks to the work of Peter Fraenkel, Laurent Petit, and other
contributors.  See [2].

Below are some of the changes since version 0.2.0.  A complete list is
at [3].

Go squash some bugs!

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

[1] https://github.com/jonase/eastwood
[2] https://github.com/jonase/eastwood#editor-support
[3]
https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-020-to-021



New linters, and new good warnings from existing linters:

* New linter :wrong-ns-form that warns about several kinds of wrong
  or suspicious :require or :use subforms inside ns forms.

* :suspicious-expression linter now warns about trivial uses of more
  clojure.core macros then before.

Fewer unwanted warnings, via logic enhancements or configuration
options:

* Several linters now have configuration options to disable their
  warnings based upon whether the warnings occur inside of a
  macroexpansion of a particular macro.  By default, Eastwood loads
  several config files worth of such disabling options for the linters
  :constant-test, :redefd-vars, :suspicious-expression, and
  :unused-ret-vals that prevent them from generating many unwanted
  warning messages, at least when certain macros are used, such as
  those in core.contracts, core.match, core.typed, Korma,
  Carmine, Timbre, Instaparse, and Schema.  Eastwood users may write
  their own config files to disable more warnings.

* The :wrong-arity linter now generates nearly no unwanted warnings
  when you use the java.jdbc and Hiccup libraries.  Those libraries
  modify the :arglists key in metadata of some of their functions
  and macros for documentation purposes, but in a way that fooled
  Eastwood into generating incorrect warnings.  Like the previous
  item, this is also configurable, and Eastwood users may extend these
  configurations for their own situations.

* The :unused-namespaces linter had several bugs causing it to
  report a namespace that was required or used as being unused,
  when in fact it was.

Other enhancements:

* When reflection or boxed math warnings are enabled and the Clojure
  compiler prints them during Eastwood's eval-ing of your code,
  Eastwood will recognize them and change their format to match that
  of Eastwood's own warnings, so that they may be stepped through in
  editors in the same way as other Eastwood warnings.

* New eastwood.lint/lint function intended for use by developers
  integrating Eastwood with editors and IDEs.

* When specifying lists of linters to use in Eastwood options, can now
  use the keyword :all as an abbreviation for all linters, or
  :default for all linters enabled by default.

-- 
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.


[ANN] Eastwood the Clojure lint tool version 0.1.5

2014-11-04 Thread Andy Fingerhut
Eastwood is a Clojure lint tool.  It analyzes Clojure source code in
projects, 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-014-to-015

The changes most visible to Eastwood users are:

   -

   New linter :local-shadows-var that warns if a local name (e.g. a
   function argument or let binding) has the same name as a global Var, and is
   called as a function. This is sometimes a mistake.  More details with
   examples here:
   
https://github.com/jonase/eastwood#local-shadows-var---a-local-name-that-is-same-as-a-global-name-called-as-a-function
   -

   New linter :wrong-tag that warns for some kinds of erroneous type tags.
   For example, a primitive type tag like ^int or ^bytes on a Var name
   being def'd or defn'd should be given as ^{:tag 'int} instead. Also it
   is best if Java class names outside of the java.lang package are fully
   qualified when used to hint the return type of a function on its argument
   vector. More details with examples here:
   https://github.com/jonase/eastwood#wrong-tag---an-incorrect-type-tag
   -

   New API for running Eastwood from a REPL session, nearly identical to
   what is available from the command line. Note that this means you need not
   use Leiningen at all to use Eastwood, even if the instructions are
   currently Leiningen-specific.  Instructions here:
   https://github.com/jonase/eastwood#running-eastwood-in-a-repl
   -

   :unlimited-use warnings are no longer issued for the namespace
   clojure.test. It is very common for Clojure developers to have (:use
   clojure.test) in test namespaces. Issue #95
   https://github.com/jonase/eastwood/issues/95.
   - :suspicious-expression warnings are no longer issued for forms inside
   quote forms. Issue #74 https://github.com/jonase/eastwood/issues/74.


For those who have asked, sorry, there is still no way to annotate
expressions in your source code to disable linters for expressions that you
know are ok, while leaving the linter enabled in the rest of the code.
That is coming.

Go squash some bugs!

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

-- 
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.


[ANN] Eastwood the Clojure lint tool version 0.1.4

2014-06-17 Thread Andy Fingerhut
Eastwood is a Clojure lint tool.  It analyzes Clojure source code in
Leiningen projects, 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-013-to-014

The changes most visible to Eastwood users are:

   -

   Only report :suspicious-test warnings for (is ...) forms if the is
   refers to the one defined in clojure.test. This is especially helpful to
   users of core.typed, which defines its own meaning for (is ...) forms.
   These often caused false warnings with previous Eastwood versions. Issue
   #63 https://github.com/jonase/eastwood/issues/63.
   -

   No longer report nil values as :unused-ret-vals warnings if they arise
   due to the expansion of gen-class or comment macros. Issue #39
   https://github.com/jonase/eastwood/issues/39.
   -

   Improved precision of :line and :column values in :unlimited-use
   warnings.

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

-- 
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.


[ANN] Eastwood the Clojure lint tool version 0.1.3

2014-06-01 Thread Andy Fingerhut
Eastwood is a Clojure lint tool.  It analyzes Clojure source code in
Leiningen projects, reporting things that may be errors.

Installation instructions are in the documentation here:

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

The previous release was 0.1.2 in April 2014.  Updates since then are
described in the change log here:


https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-012-to-013
https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-010-to-011

Probably the most noticeable changes for Eastwood users will be the
following.  The last bullet item is especially significant for Eastwood
users, because it means that there should no longer be any conflicts
between different versions of Clojure contrib libraries in the dependencies
of your project being linted, and those used by Eastwood.

   -

   Added file name to all linter warnings. Issue #64
   https://github.com/jonase/eastwood/issues/64.
   -

   Added column numbers to :redefd-vars warnings.
   -

   Handle ./ at beginning of :source-paths or :test-paths dir names.
   Fixes issue #66 https://github.com/jonase/eastwood/issues/66.
   -

   Most of the Clojure contrib libraries upon which Eastwood depends are
   now copied into Eastwood itself, and then renamed to have different
   namespace names. This helps to avoid potential conflicts between the
   version used by Eastwood, and the version used by Clojure projects being
   linted. Fixes issue #67 https://github.com/jonase/eastwood/issues/67.


Below is the description Eastwood from the January 2014 release:

For example, did you know that if you use clojure.test to write tests, and
have multiple deftest definitions in the same namespace with the same name,
then the tests in all but the last deftest will never be run, whether those
tests would pass or fail?  Eastwood can find those duplicate names, as well
as other occurrences of the same Var name defined more than once.

Eastwood can also warn about misplaced doc strings, calling deprecated
functions or Java methods, expressions that are suspicious because they
always return the same value (e.g. (= expr) is always true), expressions
whose return value is not used and appear to have no side effects, and a
few others.  See the documentation linked above for a complete list.

Jonas Enlund wrote the original version of Eastwood with the help of
several other contributors.  Version 0.1.1 is an update by Jonas, Nicola
Mometto, and myself.  It uses the new Clojure contrib libraries
tools.reader for reading the code, and tools.analyzer and
tools.analyzer.jvm for parsing the source into abstract syntax trees,
making it straightforward to write many of the linters.  Thanks especially
to Nicola Mometto for tireless enhancements and bug fixes to those
libraries.

You can file issues on the Github issue tracker if you encounter problems,
but please read the Known Issues section of the documentation before
filing problems.  Several issues have already been discovered, and their
causes documented, while testing Eastwood on most of the Clojure contrib
libraries, Clojure itself, and over 35 other open source libraries.

Go squash some bugs!

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

-- 
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.


[ANN] Eastwood the Clojure lint tool version 0.1.2

2014-04-03 Thread Andy Fingerhut
Version 0.1.2 of the Eastwood the Clojure lint tool has been released to
Clojars.  Instructions here:

https://github.com/jonase/eastwood

This version fixes a few bugs in the previous release.  It can now analyze
a several more projects without throwing exceptions.  One known regression
from the previous version is that potemkin, and some libraries that depend
upon it, now throw exceptions while linting them.  You may wish to stick
with Eastwood version 0.1.1 if you are in that situation.

Please submit issues if you run into problems, but if you have a moment,
please look through the known issues in the README first.

Jonas Enlund, Nicola Mometto, and Andy Fingerhut

-- 
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.


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Jakub Holy
For me, Eastwood fails mysteriously:

$ lein eastwood
Exception in thread main java.lang.RuntimeException: No such var: 
clojure.core.cache/through, compiling:(clojure/core/memoize.clj:52:3)
at clojure.lang.Compiler.analyze(Compiler.java:6380)
...
Caused by: java.lang.RuntimeException: No such var: 
clojure.core.cache/through

using :dependencies [[org.clojure/clojure 1.5.1] ...]

I use couple of other dependencies and 
pluginshttps://github.com/jakubholynet/dotfiles/blob/master/.lein/profiles.cljthat
 could theoretically somehow conflict with Eastwood.

Cheers, Jakub


On Thursday, March 20, 2014 4:02:36 PM UTC+1, Andy Fingerhut wrote:

 Eastwood is a Clojure lint tool.  It analyzes Clojure source code in 
 Leiningen projects, reporting things that may be errors.

 Installation instructions are in the documentation here:

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

 The previous release was in January 2014.  Updates since then are 
 described in the change log here:

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

 Probably the most noticeable changes for Eastwood users will be the errors 
 if namespace/file name inconsistencies are found, and the reduction in bad 
 reflection warnings.

 Below is the description Eastwood from the January 2014 release:

 For example, did you know that if you use clojure.test to write tests, and 
 have multiple deftest definitions in the same namespace with the same name, 
 then the tests in all but the last deftest will never be run, whether those 
 tests would pass or fail?  Eastwood can find those duplicate names, as well 
 as other occurrences of the same Var name defined more than once.

 Eastwood can also warn about misplaced doc strings, calling deprecated 
 functions or Java methods, expressions that are suspicious because they 
 always return the same value (e.g. (= expr) is always true), expressions 
 whose return value is not used and appear to have no side effects, and a 
 few others.  See the documentation linked above for a complete list.

 Jonas Enlund wrote the original version of Eastwood with the help of 
 several other contributors.  Version 0.1.1 is an update by Jonas, Nicola 
 Mometto, and myself.  It uses the new Clojure contrib libraries 
 tools.reader for reading the code, and tools.analyzer and 
 tools.analyzer.jvm for parsing the source into abstract syntax trees, 
 making it straightforward to write many of the linters.  Thanks especially 
 to Nicola Mometto for tireless enhancements and bug fixes to those 
 libraries.

 You can file issues on the Github issue tracker if you encounter problems, 
 but please read the Known Issues section of the documentation before 
 filing problems.  Several issues have already been discovered, and their 
 causes documented, while testing Eastwood on most of the Clojure contrib 
 libraries, Clojure itself, and over 35 other open source libraries.

 Go squash some bugs!

 Andy Fingerhut


-- 
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.


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Sean Corfield
Use: lein deps :tree

That should show you where the conflict is coming from (you're picking up an 
old core.cache from somewhere).

Sean

On Mar 22, 2014, at 1:34 PM, Jakub Holy jakub.h...@iterate.no wrote:
 For me, Eastwood fails mysteriously:
 
 $ lein eastwood
 Exception in thread main java.lang.RuntimeException: No such var: 
 clojure.core.cache/through, compiling:(clojure/core/memoize.clj:52:3)
   at clojure.lang.Compiler.analyze(Compiler.java:6380)
 ...
 Caused by: java.lang.RuntimeException: No such var: clojure.core.cache/through
 
 using :dependencies [[org.clojure/clojure 1.5.1] ...]
 
 I use couple of other dependencies and plugins that could theoretically 
 somehow conflict with Eastwood.
 
 Cheers, Jakub




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Jakub Holy
Thank you, I have tried that but haven't found out anything. There is only
one part of the tree that mentions core cache, no conflict (perhaps b/c
there is none until eastwood enters the scene):

[leiningen 2.3.4]
   [stencil 0.3.2]
 [org.clojure/core.cache 0.6.2]

which is only 0.0.1 version behind the latest (and excluding it did not
help)


2014-03-22 22:25 GMT+01:00 Sean Corfield s...@corfield.org:

 Use: lein deps :tree

 That should show you where the conflict is coming from (you're picking up
 an old core.cache from somewhere).

 Sean

 On Mar 22, 2014, at 1:34 PM, Jakub Holy jakub.h...@iterate.no wrote:

 For me, Eastwood fails mysteriously:

 $ lein eastwood
 Exception in thread main java.lang.RuntimeException: No such var:
 clojure.core.cache/through, compiling:(clojure/core/memoize.clj:52:3)
  at clojure.lang.Compiler.analyze(Compiler.java:6380)
 ...
 Caused by: java.lang.RuntimeException: No such var:
 clojure.core.cache/through

 using :dependencies [[org.clojure/clojure 1.5.1] ...]

 I use couple of other dependencies and 
 pluginshttps://github.com/jakubholynet/dotfiles/blob/master/.lein/profiles.cljthat
  could theoretically somehow conflict with Eastwood.

 Cheers, Jakub






-- 
*Forget software. Strive to make an impact, deliver a valuable change.*

*(**Vær så snill og hjelp meg med å forbedre norsken **min –** skriftlig og
muntlig. Takk!**)*

Jakub Holy
Solutions Engineer | +47 966 23 666
Iterate AS | www.iterate.no
The Lean Software Development Consultancy
- http://theholyjava.wordpress.com/ -

-- 
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.


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Sean Corfield
Ah, I ran into this as well recently with a plugin that was evaluating in 
Leiningen - and thus Leiningen's dependency on Stencil (and core.cache) 
overrode my own.

Are you using Vinyasa or something like that?

Sean

On Mar 22, 2014, at 2:55 PM, Jakub Holy jakub.h...@iterate.no wrote:
 Thank you, I have tried that but haven't found out anything. There is only 
 one part of the tree that mentions core cache, no conflict (perhaps b/c there 
 is none until eastwood enters the scene):
 
 [leiningen 2.3.4]
[stencil 0.3.2]
  [org.clojure/core.cache 0.6.2]
 
 which is only 0.0.1 version behind the latest (and excluding it did not help)
 
 
 2014-03-22 22:25 GMT+01:00 Sean Corfield s...@corfield.org:
 Use: lein deps :tree
 
 That should show you where the conflict is coming from (you're picking up an 
 old core.cache from somewhere).
 
 Sean




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Jakub Holy
Yes, I am using vinyasa - see
https://github.com/jakubholynet/dotfiles/blob/master/.lein/profiles.clj

Still, Lein's core.cache is nearly the newest available...


2014-03-22 23:01 GMT+01:00 Sean Corfield s...@corfield.org:

 Ah, I ran into this as well recently with a plugin that was evaluating in
 Leiningen - and thus Leiningen's dependency on Stencil (and core.cache)
 overrode my own.

 Are you using Vinyasa or something like that?

 Sean

 On Mar 22, 2014, at 2:55 PM, Jakub Holy jakub.h...@iterate.no wrote:

 Thank you, I have tried that but haven't found out anything. There is only
 one part of the tree that mentions core cache, no conflict (perhaps b/c
 there is none until eastwood enters the scene):

 [leiningen 2.3.4]
[stencil 0.3.2]
  [org.clojure/core.cache 0.6.2]

 which is only 0.0.1 version behind the latest (and excluding it did not
 help)


 2014-03-22 22:25 GMT+01:00 Sean Corfield s...@corfield.org:

 Use: lein deps :tree

 That should show you where the conflict is coming from (you're picking up
 an old core.cache from somewhere).

 Sean






-- 
*Forget software. Strive to make an impact, deliver a valuable change.*

*(**Vær så snill og hjelp meg med å forbedre norsken **min –** skriftlig og
muntlig. Takk!**)*

Jakub Holy
Solutions Engineer | +47 966 23 666
Iterate AS | www.iterate.no
The Lean Software Development Consultancy
- http://theholyjava.wordpress.com/ -

-- 
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.


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Sean Corfield
On Mar 22, 2014, at 3:27 PM, Jakub Holy jakub.h...@iterate.no wrote:
 Yes, I am using vinyasa - see 
 https://github.com/jakubholynet/dotfiles/blob/master/.lein/profiles.clj

See https://github.com/zcaudate/vinyasa/issues/3

 Still, Lein's core.cache is nearly the newest available...

My understanding is that 0.6.3 added core.cache/through, and core.memoize 
depends on that version.

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)





signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-22 Thread Jakub Holy
I see. Thanks a lot!


2014-03-22 23:32 GMT+01:00 Sean Corfield s...@corfield.org:

 On Mar 22, 2014, at 3:27 PM, Jakub Holy jakub.h...@iterate.no wrote:

 Yes, I am using vinyasa - see
 https://github.com/jakubholynet/dotfiles/blob/master/.lein/profiles.clj


 See https://github.com/zcaudate/vinyasa/issues/3

  Still, Lein's core.cache is nearly the newest available...


 My understanding is that 0.6.3 added core.cache/through, and core.memoize
 depends on that version.

 Sean Corfield -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/

 Perfection is the enemy of the good.
 -- Gustave Flaubert, French realist novelist (1821-1880)






-- 
*Forget software. Strive to make an impact, deliver a valuable change.*

* (**Vær så snill og hjelp meg med å forbedre norsken **min –** skriftlig
og muntlig. Takk!**)*

Jakub Holy
Solutions Engineer | +47 966 23 666
Iterate AS | www.iterate.no
The Lean Software Development Consultancy
- http://theholyjava.wordpress.com/ -

-- 
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.


[ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-20 Thread Andy Fingerhut
Eastwood is a Clojure lint tool.  It analyzes Clojure source code in
Leiningen projects, reporting things that may be errors.

Installation instructions are in the documentation here:

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

The previous release was in January 2014.  Updates since then are described
in the change log here:


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

Probably the most noticeable changes for Eastwood users will be the errors
if namespace/file name inconsistencies are found, and the reduction in bad
reflection warnings.

Below is the description Eastwood from the January 2014 release:

For example, did you know that if you use clojure.test to write tests, and
have multiple deftest definitions in the same namespace with the same name,
then the tests in all but the last deftest will never be run, whether those
tests would pass or fail?  Eastwood can find those duplicate names, as well
as other occurrences of the same Var name defined more than once.

Eastwood can also warn about misplaced doc strings, calling deprecated
functions or Java methods, expressions that are suspicious because they
always return the same value (e.g. (= expr) is always true), expressions
whose return value is not used and appear to have no side effects, and a
few others.  See the documentation linked above for a complete list.

Jonas Enlund wrote the original version of Eastwood with the help of
several other contributors.  Version 0.1.1 is an update by Jonas, Nicola
Mometto, and myself.  It uses the new Clojure contrib libraries
tools.reader for reading the code, and tools.analyzer and
tools.analyzer.jvm for parsing the source into abstract syntax trees,
making it straightforward to write many of the linters.  Thanks especially
to Nicola Mometto for tireless enhancements and bug fixes to those
libraries.

You can file issues on the Github issue tracker if you encounter problems,
but please read the Known Issues section of the documentation before
filing problems.  Several issues have already been discovered, and their
causes documented, while testing Eastwood on most of the Clojure contrib
libraries, Clojure itself, and over 35 other open source libraries.

Go squash some bugs!

Andy Fingerhut

-- 
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.


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-20 Thread Sean Corfield
Thanx for Eastwood - it's a great tool!

Just FYI, using Clojure 1.6.0 builds produces these warnings:

WARNING: record? already refers to: #'clojure.core/record? in namespace: 
clojure.tools.analyzer.utils, being replaced by: 
#'clojure.tools.analyzer.utils/record?
WARNING: record? already refers to: #'clojure.core/record? in namespace: 
clojure.tools.analyzer, being replaced by: 
#'clojure.tools.analyzer.utils/record?

We've had to disable :wrong-arity due to our use of java.jdbc / congomongo but 
our code - including all our Expectations tests - is clean of lint otherwise!

Sean

On Mar 20, 2014, at 8:02 AM, Andy Fingerhut andy.finger...@gmail.com wrote:
 Eastwood is a Clojure lint tool.  It analyzes Clojure source code in 
 Leiningen projects, reporting things that may be errors.
 
 Installation instructions are in the documentation here:
 
 https://github.com/jonase/eastwood/#installation--quick-usage
 
 The previous release was in January 2014.  Updates since then are described 
 in the change log here:
 
 
 https://github.com/jonase/eastwood/blob/master/changes.md#changes-from-version-010-to-011
 
 Probably the most noticeable changes for Eastwood users will be the errors if 
 namespace/file name inconsistencies are found, and the reduction in bad 
 reflection warnings.
 
 Below is the description Eastwood from the January 2014 release:
 
 For example, did you know that if you use clojure.test to write tests, and 
 have multiple deftest definitions in the same namespace with the same name, 
 then the tests in all but the last deftest will never be run, whether those 
 tests would pass or fail?  Eastwood can find those duplicate names, as well 
 as other occurrences of the same Var name defined more than once.
 
 Eastwood can also warn about misplaced doc strings, calling deprecated 
 functions or Java methods, expressions that are suspicious because they 
 always return the same value (e.g. (= expr) is always true), expressions 
 whose return value is not used and appear to have no side effects, and a few 
 others.  See the documentation linked above for a complete list.
 
 Jonas Enlund wrote the original version of Eastwood with the help of several 
 other contributors.  Version 0.1.1 is an update by Jonas, Nicola Mometto, and 
 myself.  It uses the new Clojure contrib libraries tools.reader for reading 
 the code, and tools.analyzer and tools.analyzer.jvm for parsing the source 
 into abstract syntax trees, making it straightforward to write many of the 
 linters.  Thanks especially to Nicola Mometto for tireless enhancements and 
 bug fixes to those libraries.
 
 You can file issues on the Github issue tracker if you encounter problems, 
 but please read the Known Issues section of the documentation before filing 
 problems.  Several issues have already been discovered, and their causes 
 documented, while testing Eastwood on most of the Clojure contrib libraries, 
 Clojure itself, and over 35 other open source libraries.
 
 Go squash some bugs!
 
 Andy Fingerhut




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-20 Thread Nicola Mometto

Are you sure it's pulling the last tools.analyzer version?
That warning has been disabled by this commit in tools.analyzer
https://github.com/clojure/tools.analyzer/commit/89d98b688448fe3d02bcabea240bcb2f6d2bbd70
which is two months old

Nicola

Sean Corfield writes:

 Thanx for Eastwood - it's a great tool!

 Just FYI, using Clojure 1.6.0 builds produces these warnings:

 WARNING: record? already refers to: #'clojure.core/record? in namespace: 
 clojure.tools.analyzer.utils, being replaced by: 
 #'clojure.tools.analyzer.utils/record?
 WARNING: record? already refers to: #'clojure.core/record? in namespace: 
 clojure.tools.analyzer, being replaced by: 
 #'clojure.tools.analyzer.utils/record?

 We've had to disable :wrong-arity due to our use of java.jdbc / congomongo 
 but our code - including all our Expectations tests - is clean of lint 
 otherwise!

 Sean

 On Mar 20, 2014, at 8:02 AM, Andy Fingerhut andy.finger...@gmail.com wrote:
 Eastwood is a Clojure lint tool.  It analyzes Clojure source code in 
 Leiningen projects, reporting things that may be errors.

 Installation instructions are in the documentation here:

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

 The previous release was in January 2014.  Updates since then are described 
 in the change log here:

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

 Probably the most noticeable changes for Eastwood users will be the errors 
 if namespace/file name inconsistencies are found, and the reduction in bad 
 reflection warnings.

 Below is the description Eastwood from the January 2014 release:

 For example, did you know that if you use clojure.test to write tests, and 
 have multiple deftest definitions in the same namespace with the same name, 
 then the tests in all but the last deftest will never be run, whether those 
 tests would pass or fail?  Eastwood can find those duplicate names, as well 
 as other occurrences of the same Var name defined more than once.

 Eastwood can also warn about misplaced doc strings, calling deprecated 
 functions or Java methods, expressions that are suspicious because they 
 always return the same value (e.g. (= expr) is always true), expressions 
 whose return value is not used and appear to have no side effects, and a few 
 others.  See the documentation linked above for a complete list.

 Jonas Enlund wrote the original version of Eastwood with the help of several 
 other contributors.  Version 0.1.1 is an update by Jonas, Nicola Mometto, 
 and myself.  It uses the new Clojure contrib libraries tools.reader for 
 reading the code, and tools.analyzer and tools.analyzer.jvm for parsing the 
 source into abstract syntax trees, making it straightforward to write many 
 of the linters.  Thanks especially to Nicola Mometto for tireless 
 enhancements and bug fixes to those libraries.

 You can file issues on the Github issue tracker if you encounter problems, 
 but please read the Known Issues section of the documentation before 
 filing problems.  Several issues have already been discovered, and their 
 causes documented, while testing Eastwood on most of the Clojure contrib 
 libraries, Clojure itself, and over 35 other open source libraries.

 Go squash some bugs!

 Andy Fingerhut

-- 
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.


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-20 Thread Andy Fingerhut
Sean, which version of Eastwood are you using when you see those warnings
about record?  Eastwood output has a line like this near the beginning of
its output that should verify:

== Eastwood 0.1.1 Clojure 1.6.0-master-SNAPSHOT JVM 1.7.0_51

Does your project depend on the clojure.tools.analyzer library, directly or
indirectly?

I just re-checked my test run output, and do not see warning lines like
those in the output, except for Clojure code that specifically defines a
function called 'record?' (e.g. like midje, core.logic, and a few others).
clojure.tools.analyzer latest version no longer does, and Eastwood 0.1.1
does depend on the latest release 0.1.0-beta8 of that lib.

Eastwood 0.1.0 uses an older one that I think would show the warnings you
see.

Andy


On Thu, Mar 20, 2014 at 1:37 PM, Sean Corfield s...@corfield.org wrote:

 Thanx for Eastwood - it's a great tool!

 Just FYI, using Clojure 1.6.0 builds produces these warnings:

 WARNING: record? already refers to: #'clojure.core/record? in namespace:
 clojure.tools.analyzer.utils, being replaced by:
 #'clojure.tools.analyzer.utils/record?
 WARNING: record? already refers to: #'clojure.core/record? in namespace:
 clojure.tools.analyzer, being replaced by:
 #'clojure.tools.analyzer.utils/record?

 We've had to disable :wrong-arity due to our use of java.jdbc / congomongo
 but our code - including all our Expectations tests - is clean of lint
 otherwise!

 Sean

 On Mar 20, 2014, at 8:02 AM, Andy Fingerhut andy.finger...@gmail.com
 wrote:

 Eastwood is a Clojure lint tool.  It analyzes Clojure source code in
 Leiningen projects, reporting things that may be errors.

 Installation instructions are in the documentation here:

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

 The previous release was in January 2014.  Updates since then are
 described in the change log here:


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

 Probably the most noticeable changes for Eastwood users will be the errors
 if namespace/file name inconsistencies are found, and the reduction in bad
 reflection warnings.

 Below is the description Eastwood from the January 2014 release:

 For example, did you know that if you use clojure.test to write tests, and
 have multiple deftest definitions in the same namespace with the same name,
 then the tests in all but the last deftest will never be run, whether those
 tests would pass or fail?  Eastwood can find those duplicate names, as well
 as other occurrences of the same Var name defined more than once.

 Eastwood can also warn about misplaced doc strings, calling deprecated
 functions or Java methods, expressions that are suspicious because they
 always return the same value (e.g. (= expr) is always true), expressions
 whose return value is not used and appear to have no side effects, and a
 few others.  See the documentation linked above for a complete list.

 Jonas Enlund wrote the original version of Eastwood with the help of
 several other contributors.  Version 0.1.1 is an update by Jonas, Nicola
 Mometto, and myself.  It uses the new Clojure contrib libraries
 tools.reader for reading the code, and tools.analyzer and
 tools.analyzer.jvm for parsing the source into abstract syntax trees,
 making it straightforward to write many of the linters.  Thanks especially
 to Nicola Mometto for tireless enhancements and bug fixes to those
 libraries.

 You can file issues on the Github issue tracker if you encounter problems,
 but please read the Known Issues section of the documentation before
 filing problems.  Several issues have already been discovered, and their
 causes documented, while testing Eastwood on most of the Clojure contrib
 libraries, Clojure itself, and over 35 other open source libraries.

 Go squash some bugs!

 Andy Fingerhut





-- 
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.


Re: [ANN] Eastwood 0.1.1 Clojure lint tool

2014-03-20 Thread Sean Corfield
On Mar 20, 2014, at 3:07 PM, Andy Fingerhut andy.finger...@gmail.com wrote:
 Sean, which version of Eastwood are you using when you see those warnings 
 about record?  Eastwood output has a line like this near the beginning of its 
 output that should verify:

Ugh! I updated project.clj to use Eastwood 0.1.1 but still had Eastwood 0.1.0 
in my ~/.lein/profiles.clj file which was overriding it. Once I removed that 
old dependency, the warning went away. Thank you!

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)





signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [ANN] Eastwood 0.1.0 Clojure lint tool

2014-01-11 Thread Jonas
Andy and Nicola has done truly amazing work with this release! Check out 
the graph describing issues created/solved for tools.analyzer(.jvm) during 
the last 60 days: 
http://dev.clojure.org/jira/secure/ConfigureReport.jspa?projectOrFilterId=project-10371periodName=dailydaysprevious=60cumulative=trueversionLabels=majorselectedProjectId=10371reportKey=com.atlassian.jira.plugin.system.reports%3Acreatedvsresolved-reportNext=Next

Cheers,
Jonas

On Saturday, January 11, 2014 9:30:46 AM UTC+2, Andy Fingerhut wrote:

 Eastwood is a Clojure lint tool.  It analyzes Clojure source code in 
 Leiningen projects, reporting things that may be errors.

 Installation instructions are in the documentation here:

 https://github.com/jonase/eastwood

 For example, did you know that if you use clojure.test to write tests, and 
 have multiple deftest definitions in the same namespace with the same name, 
 then the tests in all but the last deftest will never be run, whether those 
 tests would pass or fail?  Eastwood can find those duplicate names, as well 
 as other occurrences of the same Var name defined more than once.

 Eastwood can also warn about misplaced doc strings, calling deprecated 
 functions or Java methods, expressions that are suspicious because they 
 always return the same value (e.g. (= expr) is always true), expressions 
 whose return value is not used and appear to have no side effects, and a 
 few others.  See the documentation linked above for a complete list.

 Jonas Enlund wrote the original version of Eastwood with the help of 
 several other contributors.  Version 0.1.0 is an update by Jonas, Nicola 
 Mometto, and myself.  It uses the new Clojure contrib libraries 
 tools.reader for reading the code, and tools.analyzer and 
 tools.analyzer.jvm for parsing the source into abstract syntax trees, 
 making it straightforward to write many of the linters.  Thanks especially 
 to Nicola Mometto for tireless enhancements and bug fixes to those 
 libraries.

 You can file issues on the Github issue tracker if you encounter problems, 
 but please read the Known Issues section of the documentation before 
 filing problems.  Several issues have already been discovered, and their 
 causes documented, while testing Eastwood on most of the Clojure contrib 
 libraries, Clojure itself, and over 35 other open source libraries.

 Go squash some bugs!

 Andy Fingerhut



-- 
-- 
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.


[ANN] Eastwood 0.1.0 Clojure lint tool

2014-01-10 Thread Andy Fingerhut
Eastwood is a Clojure lint tool.  It analyzes Clojure source code in
Leiningen projects, reporting things that may be errors.

Installation instructions are in the documentation here:

https://github.com/jonase/eastwood

For example, did you know that if you use clojure.test to write tests, and
have multiple deftest definitions in the same namespace with the same name,
then the tests in all but the last deftest will never be run, whether those
tests would pass or fail?  Eastwood can find those duplicate names, as well
as other occurrences of the same Var name defined more than once.

Eastwood can also warn about misplaced doc strings, calling deprecated
functions or Java methods, expressions that are suspicious because they
always return the same value (e.g. (= expr) is always true), expressions
whose return value is not used and appear to have no side effects, and a
few others.  See the documentation linked above for a complete list.

Jonas Enlund wrote the original version of Eastwood with the help of
several other contributors.  Version 0.1.0 is an update by Jonas, Nicola
Mometto, and myself.  It uses the new Clojure contrib libraries
tools.reader for reading the code, and tools.analyzer and
tools.analyzer.jvm for parsing the source into abstract syntax trees,
making it straightforward to write many of the linters.  Thanks especially
to Nicola Mometto for tireless enhancements and bug fixes to those
libraries.

You can file issues on the Github issue tracker if you encounter problems,
but please read the Known Issues section of the documentation before
filing problems.  Several issues have already been discovered, and their
causes documented, while testing Eastwood on most of the Clojure contrib
libraries, Clojure itself, and over 35 other open source libraries.

Go squash some bugs!

Andy Fingerhut

-- 
-- 
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.


Re: [ANN] Eastwood - A Clojure lint tool

2012-04-27 Thread Edmund
This is great, and working for me, thanks :)

On Thursday, 19 April 2012 14:04:07 UTC+1, Jonas wrote:

 Eastwood[1] is a Clojure lint tool which uses the analyze[2] library to 
 inspect
 namespaces and report possible problems. Currently it should work
 with projects running Clojure 1.3.0 and newer.

 Currently eastwood warns when it finds 
 - deprecated java instance methods, static fields, static methods and 
 constructors
 - deprecated clojure vars
 - unused function arguments
 - unused private vars
 - reflection
 - naked (:use ...)
 - misplaced docstrings
 - keyword typos

 I appreciate bug reports and feature requests and I also hope you find it 
 useful!

 Jonas

 [1] https://github.com/jonase/eastwood
 [2] https://github.com/frenchy64/analyze


-- 
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

[ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Jonas
Eastwood[1] is a Clojure lint tool which uses the analyze[2] library to 
inspect
namespaces and report possible problems. Currently it should work
with projects running Clojure 1.3.0 and newer.

Currently eastwood warns when it finds 
- deprecated java instance methods, static fields, static methods and 
constructors
- deprecated clojure vars
- unused function arguments
- unused private vars
- reflection
- naked (:use ...)
- misplaced docstrings
- keyword typos

I appreciate bug reports and feature requests and I also hope you find it 
useful!

Jonas

[1] https://github.com/jonase/eastwood
[2] https://github.com/frenchy64/analyze

-- 
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

Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Stefan Kamphausen

inc for the name! :-)

-- 
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

Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Ambrose Bonnaire-Sergeant
Did I do something wrong?

ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein plugin install
jonase/eastwood 0.0.1

ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein version
Leiningen 1.7.1 on Java 1.6.0_23 OpenJDK Client VM
ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein eastwood
Exception in thread main java.io.FileNotFoundException: Could not locate
leiningen/core/eval__init.class or leiningen/core/eval.clj on classpath:
 (eastwood.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5415)
at clojure.lang.Compiler.load(Compiler.java:5857)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4519.invoke(core.clj:4915)
at clojure.core$load.doInvoke(core.clj:4914)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:4729)
at clojure.core$load_lib.doInvoke(core.clj:4766)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4800)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$require.doInvoke(core.clj:4881)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at leiningen.core$resolve_task.invoke(core.clj:208)
at leiningen.core$apply_task.invoke(core.clj:258)
at leiningen.core$_main.doInvoke(core.clj:329)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:332)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.io.FileNotFoundException: Could not locate
leiningen/core/eval__init.class or leiningen/core/eval.clj on classpath:
at clojure.lang.RT.load(RT.java:412)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4519.invoke(core.clj:4915)
at clojure.core$load.doInvoke(core.clj:4914)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:4729)
at clojure.core$load_lib.doInvoke(core.clj:4766)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4800)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:544)
at clojure.core$use.doInvoke(core.clj:4892)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at
leiningen.eastwood$eval68$loading__4414__auto69.invoke(eastwood.clj:1)
at leiningen.eastwood$eval68.invoke(eastwood.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
... 39 more

On Thu, Apr 19, 2012 at 9:04 PM, Jonas jonas.enl...@gmail.com wrote:

 Eastwood[1] is a Clojure lint tool which uses the analyze[2] library to
 inspect
 namespaces and report possible problems. Currently it should work
 with projects running Clojure 1.3.0 and newer.

 Currently eastwood warns when it finds
 - deprecated java instance methods, static fields, static methods and
 constructors
 - deprecated clojure vars
 - unused function arguments
 - unused private vars
 - reflection
 - naked (:use ...)
 - misplaced docstrings
 - keyword typos

 I appreciate bug reports and feature requests and I also hope you find it
 useful!

 Jonas

 [1] https://github.com/jonase/eastwood
 [2] https://github.com/frenchy64/analyze

 --
 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 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

Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Baishampayan Ghose
On Thu, Apr 19, 2012 at 6:34 PM, Jonas jonas.enl...@gmail.com wrote:
 Eastwood[1] is a Clojure lint tool which uses the analyze[2] library to
 inspect
 namespaces and report possible problems. Currently it should work
 with projects running Clojure 1.3.0 and newer.

 Currently eastwood warns when it finds
 - deprecated java instance methods, static fields, static methods and
 constructors
 - deprecated clojure vars
 - unused function arguments
 - unused private vars
 - reflection
 - naked (:use ...)
 - misplaced docstrings
 - keyword typos

 I appreciate bug reports and feature requests and I also hope you find it
 useful!

This is simply awesome! Will try it out and let you know.

Regards,
BG

-- 
Baishampayan Ghose
b.ghose at gmail.com

-- 
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


Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Baishampayan Ghose
I got exactly the same error.

Regards,
BG

On Thu, Apr 19, 2012 at 6:54 PM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
 Did I do something wrong?

 ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein plugin install
 jonase/eastwood 0.0.1
 
 ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein version
 Leiningen 1.7.1 on Java 1.6.0_23 OpenJDK Client VM
 ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein eastwood
 Exception in thread main java.io.FileNotFoundException: Could not locate
 leiningen/core/eval__init.class or leiningen/core/eval.clj on classpath:
  (eastwood.clj:1)
 at clojure.lang.Compiler.eval(Compiler.java:5440)
 at clojure.lang.Compiler.eval(Compiler.java:5415)
 at clojure.lang.Compiler.load(Compiler.java:5857)
 at clojure.lang.RT.loadResourceScript(RT.java:340)
 at clojure.lang.RT.loadResourceScript(RT.java:331)
 at clojure.lang.RT.load(RT.java:409)
 at clojure.lang.RT.load(RT.java:381)
 at clojure.core$load$fn__4519.invoke(core.clj:4915)
 at clojure.core$load.doInvoke(core.clj:4914)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at clojure.core$load_one.invoke(core.clj:4729)
 at clojure.core$load_lib.doInvoke(core.clj:4766)
 at clojure.lang.RestFn.applyTo(RestFn.java:142)
 at clojure.core$apply.invoke(core.clj:542)
 at clojure.core$load_libs.doInvoke(core.clj:4800)
 at clojure.lang.RestFn.applyTo(RestFn.java:137)
 at clojure.core$apply.invoke(core.clj:542)
 at clojure.core$require.doInvoke(core.clj:4881)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at leiningen.core$resolve_task.invoke(core.clj:208)
 at leiningen.core$apply_task.invoke(core.clj:258)
 at leiningen.core$_main.doInvoke(core.clj:329)
 at clojure.lang.RestFn.invoke(RestFn.java:410)
 at clojure.lang.AFn.applyToHelper(AFn.java:161)
 at clojure.lang.RestFn.applyTo(RestFn.java:132)
 at clojure.core$apply.invoke(core.clj:542)
 at leiningen.core$_main.invoke(core.clj:332)
 at user$eval42.invoke(NO_SOURCE_FILE:1)
 at clojure.lang.Compiler.eval(Compiler.java:5424)
 at clojure.lang.Compiler.eval(Compiler.java:5391)
 at clojure.core$eval.invoke(core.clj:2382)
 at clojure.main$eval_opt.invoke(main.clj:235)
 at clojure.main$initialize.invoke(main.clj:254)
 at clojure.main$script_opt.invoke(main.clj:270)
 at clojure.main$main.doInvoke(main.clj:354)
 at clojure.lang.RestFn.invoke(RestFn.java:457)
 at clojure.lang.Var.invoke(Var.java:377)
 at clojure.lang.AFn.applyToHelper(AFn.java:172)
 at clojure.lang.Var.applyTo(Var.java:482)
 at clojure.main.main(main.java:37)
 Caused by: java.io.FileNotFoundException: Could not locate
 leiningen/core/eval__init.class or leiningen/core/eval.clj on classpath:
 at clojure.lang.RT.load(RT.java:412)
 at clojure.lang.RT.load(RT.java:381)
 at clojure.core$load$fn__4519.invoke(core.clj:4915)
 at clojure.core$load.doInvoke(core.clj:4914)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at clojure.core$load_one.invoke(core.clj:4729)
 at clojure.core$load_lib.doInvoke(core.clj:4766)
 at clojure.lang.RestFn.applyTo(RestFn.java:142)
 at clojure.core$apply.invoke(core.clj:542)
 at clojure.core$load_libs.doInvoke(core.clj:4800)
 at clojure.lang.RestFn.applyTo(RestFn.java:137)
 at clojure.core$apply.invoke(core.clj:544)
 at clojure.core$use.doInvoke(core.clj:4892)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at
 leiningen.eastwood$eval68$loading__4414__auto69.invoke(eastwood.clj:1)
 at leiningen.eastwood$eval68.invoke(eastwood.clj:1)
 at clojure.lang.Compiler.eval(Compiler.java:5424)
 ... 39 more

 On Thu, Apr 19, 2012 at 9:04 PM, Jonas jonas.enl...@gmail.com wrote:

 Eastwood[1] is a Clojure lint tool which uses the analyze[2] library to
 inspect
 namespaces and report possible problems. Currently it should work
 with projects running Clojure 1.3.0 and newer.

 Currently eastwood warns when it finds
 - deprecated java instance methods, static fields, static methods and
 constructors
 - deprecated clojure vars
 - unused function arguments
 - unused private vars
 - reflection
 - naked (:use ...)
 - misplaced docstrings
 - keyword typos

 I appreciate bug reports and feature requests and I also hope you find it
 useful!

 Jonas

 [1] https://github.com/jonase/eastwood
 [2] https://github.com/frenchy64/analyze

 --
 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 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 

Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Jay Fields
same outcome for me.

On Thu, Apr 19, 2012 at 9:24 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
 Did I do something wrong?

 ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein plugin install
 jonase/eastwood 0.0.1
 
 ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein version
 Leiningen 1.7.1 on Java 1.6.0_23 OpenJDK Client VM
 ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein eastwood
 Exception in thread main java.io.FileNotFoundException: Could not locate
 leiningen/core/eval__init.class or leiningen/core/eval.clj on classpath:
  (eastwood.clj:1)
 at clojure.lang.Compiler.eval(Compiler.java:5440)
 at clojure.lang.Compiler.eval(Compiler.java:5415)
 at clojure.lang.Compiler.load(Compiler.java:5857)
 at clojure.lang.RT.loadResourceScript(RT.java:340)
 at clojure.lang.RT.loadResourceScript(RT.java:331)
 at clojure.lang.RT.load(RT.java:409)
 at clojure.lang.RT.load(RT.java:381)
 at clojure.core$load$fn__4519.invoke(core.clj:4915)
 at clojure.core$load.doInvoke(core.clj:4914)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at clojure.core$load_one.invoke(core.clj:4729)
 at clojure.core$load_lib.doInvoke(core.clj:4766)
 at clojure.lang.RestFn.applyTo(RestFn.java:142)
 at clojure.core$apply.invoke(core.clj:542)
 at clojure.core$load_libs.doInvoke(core.clj:4800)
 at clojure.lang.RestFn.applyTo(RestFn.java:137)
 at clojure.core$apply.invoke(core.clj:542)
 at clojure.core$require.doInvoke(core.clj:4881)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at leiningen.core$resolve_task.invoke(core.clj:208)
 at leiningen.core$apply_task.invoke(core.clj:258)
 at leiningen.core$_main.doInvoke(core.clj:329)
 at clojure.lang.RestFn.invoke(RestFn.java:410)
 at clojure.lang.AFn.applyToHelper(AFn.java:161)
 at clojure.lang.RestFn.applyTo(RestFn.java:132)
 at clojure.core$apply.invoke(core.clj:542)
 at leiningen.core$_main.invoke(core.clj:332)
 at user$eval42.invoke(NO_SOURCE_FILE:1)
 at clojure.lang.Compiler.eval(Compiler.java:5424)
 at clojure.lang.Compiler.eval(Compiler.java:5391)
 at clojure.core$eval.invoke(core.clj:2382)
 at clojure.main$eval_opt.invoke(main.clj:235)
 at clojure.main$initialize.invoke(main.clj:254)
 at clojure.main$script_opt.invoke(main.clj:270)
 at clojure.main$main.doInvoke(main.clj:354)
 at clojure.lang.RestFn.invoke(RestFn.java:457)
 at clojure.lang.Var.invoke(Var.java:377)
 at clojure.lang.AFn.applyToHelper(AFn.java:172)
 at clojure.lang.Var.applyTo(Var.java:482)
 at clojure.main.main(main.java:37)
 Caused by: java.io.FileNotFoundException: Could not locate
 leiningen/core/eval__init.class or leiningen/core/eval.clj on classpath:
 at clojure.lang.RT.load(RT.java:412)
 at clojure.lang.RT.load(RT.java:381)
 at clojure.core$load$fn__4519.invoke(core.clj:4915)
 at clojure.core$load.doInvoke(core.clj:4914)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at clojure.core$load_one.invoke(core.clj:4729)
 at clojure.core$load_lib.doInvoke(core.clj:4766)
 at clojure.lang.RestFn.applyTo(RestFn.java:142)
 at clojure.core$apply.invoke(core.clj:542)
 at clojure.core$load_libs.doInvoke(core.clj:4800)
 at clojure.lang.RestFn.applyTo(RestFn.java:137)
 at clojure.core$apply.invoke(core.clj:544)
 at clojure.core$use.doInvoke(core.clj:4892)
 at clojure.lang.RestFn.invoke(RestFn.java:408)
 at
 leiningen.eastwood$eval68$loading__4414__auto69.invoke(eastwood.clj:1)
 at leiningen.eastwood$eval68.invoke(eastwood.clj:1)
 at clojure.lang.Compiler.eval(Compiler.java:5424)
 ... 39 more

 On Thu, Apr 19, 2012 at 9:04 PM, Jonas jonas.enl...@gmail.com wrote:

 Eastwood[1] is a Clojure lint tool which uses the analyze[2] library to
 inspect
 namespaces and report possible problems. Currently it should work
 with projects running Clojure 1.3.0 and newer.

 Currently eastwood warns when it finds
 - deprecated java instance methods, static fields, static methods and
 constructors
 - deprecated clojure vars
 - unused function arguments
 - unused private vars
 - reflection
 - naked (:use ...)
 - misplaced docstrings
 - keyword typos

 I appreciate bug reports and feature requests and I also hope you find it
 useful!

 Jonas

 [1] https://github.com/jonase/eastwood
 [2] https://github.com/frenchy64/analyze

 --
 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 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
 

Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Jonas


On Thursday, April 19, 2012 4:24:16 PM UTC+3, Ambrose Bonnaire-Sergeant 
wrote:

 Did I do something wrong?


Sorry, I only tested in with lein2. I'll try to make it work with both in 
the next release.
 

-- 
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

Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Jonas
I released 0.0.2 to clojars. It should now (hopefully) be possible to use 
eastwood with lein1. Note that eastwood will only work with projects that 
use Clojure version 1.3 and newer. This means that if you want to lint for 
example a leiningen plugin project you better use lein2 because lein1 runs 
on Clojure 1.2.1.

On Thursday, April 19, 2012 4:30:19 PM UTC+3, Jonas wrote:



 On Thursday, April 19, 2012 4:24:16 PM UTC+3, Ambrose Bonnaire-Sergeant 
 wrote:

 Did I do something wrong?


 Sorry, I only tested in with lein2. I'll try to make it work with both in 
 the next release.
  


-- 
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

Re: [ANN] Eastwood - A Clojure lint tool

2012-04-19 Thread Ambrose Bonnaire-Sergeant
Still not working with lein1.

ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein plugin install
jonase/eastwood 0.0.2
[INFO] Unable to find resource 'jonase:eastwood:jar:0.0.2' in repository
central (http://repo1.maven.org/maven2)
Copying 4 files to /tmp/lein-cc995082-fa11-4245-8f7a-88d6c5aa738d/lib
Including eastwood-0.0.2.jar
Including java.classpath-0.1.1.jar
Including google-diff-match-patch-0.1.jar
Including analyze-0.1.6.jar
Including tools.namespace-0.1.2.jar
Created jonase-eastwood-0.0.2.jar
ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein version
Leiningen 1.7.1 on Java 1.6.0_23 OpenJDK Client VM
ambrose@ambrose-VirtualBox:~/Projects/typed-clojure$ lein eastwood
That's not a task. Use lein help to list all tasks.

On Fri, Apr 20, 2012 at 1:25 AM, Jonas jonas.enl...@gmail.com wrote:

 I released 0.0.2 to clojars. It should now (hopefully) be possible to use
 eastwood with lein1. Note that eastwood will only work with projects that
 use Clojure version 1.3 and newer. This means that if you want to lint for
 example a leiningen plugin project you better use lein2 because lein1 runs
 on Clojure 1.2.1.


 On Thursday, April 19, 2012 4:30:19 PM UTC+3, Jonas wrote:



 On Thursday, April 19, 2012 4:24:16 PM UTC+3, Ambrose Bonnaire-Sergeant
 wrote:

 Did I do something wrong?


 Sorry, I only tested in with lein2. I'll try to make it work with both in
 the next release.


  --
 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 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