[aerogear-dev] JavaScript formatter

Matthias Wessendorf matzew at apache.org
Wed Oct 30 08:15:15 EDT 2013


On Wed, Oct 30, 2013 at 12:54 PM, Karel Piwko <kpiwko at redhat.com> wrote:

> On Tue, 29 Oct 2013 11:39:14 +0100
> Erik Jan de Wit <edewit at redhat.com> wrote:
>
> > Hi,
> >
> > I saw that there was some discussion about whitespace in a javascript
> file
> > on  a PR yesterday. Now it seems to me that among the things to discuss
> > whitespace is just noise, especially because formatting can be done
> > automatically. Talking with qmx and lholmquist about this it seems that
> JS
> > land doesn't have good tools for this.
> >
> > To have something in the mean time we could use something like the
> eclipse
> > formatter, because it can format JS has a ton of options and there are
> > already a lot of external tools that use it:
> >
> > https://github.com/krasa/EclipseCodeFormatter
> > https://code.google.com/p/maven-java-formatter-plugin
> >
> http://liviutudor.com/2012/03/02/batch-source-formatting-in-eclipse-indigo/
> >
> > So how about having something like this that will format our JS for us?
> We
> > could integrate something like this in our build, or that or create our
> own
> > CLI tool as long as we have something that will work so that we don't
> have to
> > discuss formatting anymore, what do you think?
>
> Not only JavaScript. For instance, it would be great to have Maven
> Checkstyle
> Plugin for Java/Android.
>

+1


>
> >
> > Cheers,
> >       Erik Jan
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20131030/f9d5606a/attachment.html 


More information about the aerogear-dev mailing list