[ 
https://issues.apache.org/jira/browse/SPARK-14508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun updated SPARK-14508:
----------------------------------
    Description: 
According to the [Spark Code Style 
Guide|https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide] 
and [Scala Style 
Guide|http://docs.scala-lang.org/style/control-structures.html#curlybraces], we 
had better enforce the following rule.
{code}
case: Always omit braces in case clauses.
{code}

This issue make a new ScalaStyle rule, 'OmitBracesInCase', and enforce it to 
the code.

  was:
According to the [Spark Code Style 
Guide|https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide] 
and [Scala Style 
Guide|http://docs.scala-lang.org/style/control-structures.html#curlybraces], we 
had better enforce the following rule.
```
case: Always omit braces in case clauses.
```

This issue make a new ScalaStyle rule, 'OmitBracesInCase', and enforce it to 
the code.


> Add a new ScalaStyle Rule `OmitBracesInCase`
> --------------------------------------------
>
>                 Key: SPARK-14508
>                 URL: https://issues.apache.org/jira/browse/SPARK-14508
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Dongjoon Hyun
>
> According to the [Spark Code Style 
> Guide|https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide]
>  and [Scala Style 
> Guide|http://docs.scala-lang.org/style/control-structures.html#curlybraces], 
> we had better enforce the following rule.
> {code}
> case: Always omit braces in case clauses.
> {code}
> This issue make a new ScalaStyle rule, 'OmitBracesInCase', and enforce it to 
> the code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to