Skip to content
This repository was archived by the owner on Oct 16, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions style.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ Expression functions should not wrap to two lines. If an expression function gro

### Properties

When a property initializer does not fit on a single line, break after the equals sign (`=`) and use a continuation indent.
When a property initializer does not fit on a single line, break after the equals sign (`=`) and use a single indent (+4).

```kotlin
private val defaultCharset: Charset? =
EncodingRegistry.getInstance().getDefaultCharsetForPropertiesFiles(file)
EncodingRegistry.getInstance().getDefaultCharsetForPropertiesFiles(file)
```

Properties declaring a `get` and/or `set` function should place each on their own line with a normal indent (+4). Format them using the same rules as functions.
Properties declaring a `get` and/or `set` function should place each on their own line with a single indent (+4). Format them using the same rules as functions.

```kotlin
var directory: File? = null
Expand Down