You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/04/12 09:44:25 UTC
[jira] [Resolved] (SPARK-14508) Add a new ScalaStyle Rule
`OmitBracesInCase`
[ https://issues.apache.org/jira/browse/SPARK-14508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-14508.
---------------------------------
Resolution: Fixed
Assignee: Dongjoon Hyun
Fix Version/s: 2.0.0
> 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
> Assignee: Dongjoon Hyun
> Fix For: 2.0.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org