Skip to content

Commit

Permalink
Added comment to the unary-op-spacing rule
Browse files Browse the repository at this point in the history
  • Loading branch information
z3d1k committed May 17, 2019
1 parent 342f0bb commit 12a6864
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import org.jetbrains.kotlin.com.intellij.psi.PsiWhiteSpace
import org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.LeafElement
import org.jetbrains.kotlin.com.intellij.psi.tree.TokenSet

/**
* Ensures there are no spaces around unary operators
*
* @see [Kotlin Style Guide](https://kotlinlang.org/docs/reference/coding-conventions.html#horizontal-whitespace)
*/
class SpacingAroundUnaryOperatorsRule : Rule("unary-op-spacing") {

private val tokenSet = TokenSet.create(PLUS, PLUSPLUS, MINUS, MINUSMINUS, EXCL, EXCLEXCL)
Expand Down

0 comments on commit 12a6864

Please sign in to comment.