We use sbt-scalariform in our company, and it can automatically format
the coding style when runs `sbt compile`.

https://github.com/sbt/sbt-scalariform

We ask our developers to run `sbt compile` before commit, and it's
really nice to see everyone has the same spacing and indentation.

Sincerely,

DB Tsai
Machine Learning Engineer
Alpine Data Labs
--------------------------------------
Web: http://alpinenow.com/


On Wed, Jan 8, 2014 at 9:50 PM, Reynold Xin <r...@databricks.com> wrote:
> We have a Scala style configuration file in Shark:
> https://github.com/amplab/shark/blob/master/scalastyle-config.xml
>
> However, the scalastyle project is still pretty primitive and doesn't cover
> most of the use cases. It is still great to include it to cover basic
> checks such as 100-char wide lines.
>
>
> On Wed, Jan 8, 2014 at 8:02 PM, Matei Zaharia <matei.zaha...@gmail.com>wrote:
>
>> Not that I know of. This would be very useful to add, especially if we can
>> make SBT automatically check the code style (or we can somehow plug this
>> into Jenkins).
>>
>> Matei
>>
>> On Jan 8, 2014, at 11:00 AM, Michael Allman <m...@allman.ms> wrote:
>>
>> > Hi,
>> >
>> > I've read the spark code style guide for contributors here:
>> >
>> > https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide
>> >
>> > For scala code, do you have a scalariform configuration that you use to
>> format your code to these specs?
>> >
>> > Cheers,
>> >
>> > Michael
>>
>>

Reply via email to