This rule mandates that function names in Kotlin should be written in camel case, starting with a lowercase letter using no underscores.
The exceptions are factory functions, which may be named the same as the type they create, and @Composable functions, which must still be in camel case, but starting with a capital letter.
funfoo(){}funfooBar(){}fun`fun`(){}// Factory functions can have the same name as the type they create
funMyService():MyService{}funNode(text:String)=Node(text=text)// Composable functions are in CamelCase
@ComposablefunMyButton(text:String){}// Test functions may have any name
@Testfun`test - works`(){}
シームレスな統合。 Datadog Code Security をお試しください
Datadog Code Security
このルールを試し、Datadog Code Security でコードを解析する
このルールの使用方法
1
2
rulesets:- kotlin-best-practices # Rules to enforce Kotlin best practices.