A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.pmd-code.org/latest/pmd_rules_kotlin_bestpractices.html below:

Best Practices | PMD Source Code Analyzer

Rules which enforce generally accepted best practices.

Table of Contents FunctionNameTooShort

Since: PMD 7.0.0

Priority: Medium (3)

Function names should be easy to understand and describe the intention. Makes developers happy.

This rule is defined by the following XPath expression:

//FunctionDeclaration/SimpleIdentifier/T-Identifier[string-length(@Text) < 3]

Example(s):

fun cl() {} // violation, no unavailable attribute added to the function declaration

fun calculateLayout() // no violation

Use this rule by referencing it:

<rule ref="category/kotlin/bestpractices.xml/FunctionNameTooShort" />

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4