Skip to content

Commit

Permalink
add assignment newline rule to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kaperys committed Oct 13, 2021
1 parent f600abf commit 3d57b16
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,25 @@ The added formatting rules are in the `format` package.

### Added rules

No empty lines following an assignment

<details><summary><i>example</i></summary>

```
func foo() {
foo :=
"bar"
}
```

```
func foo() {
foo := "bar"
}
```

</details>

No empty lines at the beginning or end of a function

<details><summary><i>example</i></summary>
Expand Down

0 comments on commit 3d57b16

Please sign in to comment.