Live data from Hacker News

Walkmod: Open-source tool to automatically apply code conventions

walkmod.com

11–20 of 28 posts

Re: Walkmod: Open-source tool to automatically apply code conventions

#13
post #7

I find it frustrating that it's not made clear upfront that Walkmod is only for Java. In fact, it's not really made clear anywhere I can see so I'm not 100% sure that's correct but it seems to be the case.

From their GitHub README [1] (I'm not affiliated): "Walkmod can support with any programing language if a set of interfaces are implemented as a third party plugin. The first (and current) supported language is Java." [1] https://github.com/rpau/walkmod-core

Exactly, Walkmod acts as a framework for language transformations, but we have started with Java

Re: Walkmod: Open-source tool to automatically apply code conventions

#14
post #3

What happens with the private method and the sysout in your example?

Not called so delete I guess. What that has to do with style or conventions I don't know.

Yes, what I wanted to show in this example is that those elements that are "dead" can be removed (there is a plugin for it)

Re: Walkmod: Open-source tool to automatically apply code conventions

#15
post #11
post #9

umm... but eclipse already do this...

Yes, but this could be used as a hook after a push on the git, so that code would always follow a certain convention, whatever editor the developper that pushed used.

Exactly :-) Moreover, it is useful for open source projects where developers use different editors

Re: Walkmod: Open-source tool to automatically apply code conventions

#16
post #14

Earlier quoted context omitted.

Not called so delete I guess. What that has to do with style or conventions I don't know.

Yes, what I wanted to show in this example is that those elements that are "dead" can be removed (there is a plugin for it)

Ok, so the commented out for loop in the example is also considered "dead". Walkmod detects that it is in fact commented out code and only then removes it. Correct?

Re: Walkmod: Open-source tool to automatically apply code conventions

#18
I think we're long overdue a tool like this (maybe it already exists?) that will reformat code. I have been so bored beyond tedium about endless debates over tabs or spaces, 2 spaces or 4 spaces, semi-colons or no semi-colons, etc. etc. ad nauseum.

Let users check out a repo formatted using whatever indentation they like, then commit back in a standardised format. Then we can all stop talking about this utter nonsense and do some real work.

Re: Walkmod: Open-source tool to automatically apply code conventions

#19
post #7

I find it frustrating that it's not made clear upfront that Walkmod is only for Java. In fact, it's not really made clear anywhere I can see so I'm not 100% sure that's correct but it seems to be the case.

From their GitHub README [1] (I'm not affiliated): "Walkmod can support with any programing language if a set of interfaces are implemented as a third party plugin. The first (and current) supported language is Java." [1] https://github.com/rpau/walkmod-core

Thanks for that! I didn't see a note anywhere on the website. It's nice to have some clarification :)

Re: Walkmod: Open-source tool to automatically apply code conventions

#20
post #16
post #14

Earlier quoted context omitted.

Yes, what I wanted to show in this example is that those elements that are "dead" can be removed (there is a plugin for it)

Ok, so the commented out for loop in the example is also considered "dead". Walkmod detects that it is in fact commented out code and only then removes it. Correct?

Yes, but in contrast with removing unused private methods, currently there is no walkmod plugin that do this yet. We are working on adding more plugins.
Post reply on HN