You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Anton Okolnychyi <an...@gmail.com> on 2016/07/01 11:11:16 UTC

Code Style Formatting

Hi, all.

I've read the Spark code style guide.
I am wondering if there is an easy way to configure the code formatting in
IntelliJ IDEA to match the existing code base style.
IntelliJ IDEA highlights all failed checks from scalastyle-config.xml.
However, I did not find any predefined configurations that I can import to
IntelliJ IDEA to adjust hot it does the formatting.
Is it possible to avoid the manual configuration?

Best regards,
Anton Okolnychyi

Re: Code Style Formatting

Posted by Reynold Xin <rx...@databricks.com>.
There isn't one pre-made, but the default works out OK. The main thing
you'd need to update are spacing changes for function argument indentation
and import ordering.

On Fri, Jul 1, 2016 at 4:11 AM, Anton Okolnychyi <anton.okolnychyi@gmail.com
> wrote:

> Hi, all.
>
> I've read the Spark code style guide.
> I am wondering if there is an easy way to configure the code formatting in
> IntelliJ IDEA to match the existing code base style.
> IntelliJ IDEA highlights all failed checks from scalastyle-config.xml.
> However, I did not find any predefined configurations that I can import to
> IntelliJ IDEA to adjust hot it does the formatting.
> Is it possible to avoid the manual configuration?
>
> Best regards,
> Anton Okolnychyi
>