Skip to content

Commit

Permalink
Add examples to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans committed Dec 2, 2023
1 parent cbdff68 commit 356392e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/snapshot/docs/rules/standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ Enforce naming of class and objects.
class Foo

class Foo1

class `class` // Any keyword is allowed when wrapped between backticks
```
=== "[:material-heart:](#) Ktlint JUnit Test"

Expand Down Expand Up @@ -384,6 +386,8 @@ Enforce naming of function.
fun foo() {}

fun fooBar() {}

fun `fun` {} // Any keyword is allowed when wrapped between backticks
```
=== "[:material-heart:](#) Ktlint Test"

Expand Down Expand Up @@ -469,6 +473,8 @@ Enforce naming of property.
val FOO1 = Foo() // In case developer want to communicate that Foo is deeply immutable
}
}

var `package` = "foo" // Any keyword is allowed when wrapped between backticks
```
=== "[:material-heart-off-outline:](#) Disallowed"

Expand Down

0 comments on commit 356392e

Please # to comment.