From 356392e956a3d91b9f61dd844513efe8e74be2b0 Mon Sep 17 00:00:00 2001 From: paul-dingemans Date: Sat, 2 Dec 2023 16:40:17 +0100 Subject: [PATCH] Add examples to docs --- documentation/snapshot/docs/rules/standard.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/snapshot/docs/rules/standard.md b/documentation/snapshot/docs/rules/standard.md index d8c7b2894a..3e82373db4 100644 --- a/documentation/snapshot/docs/rules/standard.md +++ b/documentation/snapshot/docs/rules/standard.md @@ -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" @@ -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" @@ -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"