-
Type:
Code Smell Detection
-
Status: Active
-
Resolution: Unresolved
-
Labels:
-
Message:Rename [method|function|subroutine] "XXXX" to match the regular expression ${format}.
-
Default Severity:Minor
-
Impact:Low
-
Likelihood:Low
-
Default Quality Profiles:Sonar way
-
Legacy Key:MethodName
-
Targeted languages:TypeScript
-
Covered Languages:ABAP, C#, C, C++, Flex, Go, Java, JavaScript, Kotlin, Objective-C, PHP, Python, RPG, Ruby, Scala, Swift
-
Irrelevant for Languages:Cobol, HTML, PL/I, PL/SQL, T-SQL, XML
-
Remediation Function:Constant/Issue
-
Constant Cost:5min
-
Analysis Level:Syntactic Analysis
-
Analysis Scope:Main Sources, Test Sources
-
Common Rule:Yes
-
Checkstyle:MethodName, AbbreviationAsWordInName
-
ESLint:id-length, id-match, no_underscore_dangle
-
FindBugs:NM_METHOD_NAMING_CONVENTION
-
PMD:MethodNamingConventions, ShortMethodName
-
Pylint:C0103
-
ReSharper:InconsistentNaming
Shared naming conventions allow teams to collaborate efficiently. This rule checks that all function names match a provided regular expression.
- is implemented by
-
CPP-257 Rule: Function name must comply with a naming convention
-
- Closed
-
-
SONARPY-24 Rule: Method names should comply with a naming convention
-
- Closed
-
-
SONARRPG-9 Rule: Subroutine names should comply with a naming convention
-
- Closed
-
-
SONARSLANG-1 Rule S100: Function names should comply with a naming convention
-
- Closed
-
-
SONARSLANG-202 [Scala] Enable Rule: S100 Method names should comply with a naming convention
-
- Closed
-
-
SONARSLANG-277 [Apex] Enable Rule: S100 Method names should comply with a naming convention
-
- Closed
-
-
SONARSWIFT-42 Rule: Function names should comply with a naming convention
-
- Closed
-
-
CPP-707 Create Objective-C rules repository containing targeted rules
-
- Closed
-
-
SONARABAP-184 Update title and description of rule "Method naming convention"
-
- Closed
-
-
SONARPY-689 Update the default regex of rule S100 and S1542 to not raise on short names
-
- Closed
-
- is related to
-
SONARPY-536 FN on S100: method names of subclasses
-
- Open
-
-
SONARSLANG-348 [Kotlin] FP S100 (BadFunctionNameCheck) on factory functions
-
- Closed
-
-
RSPEC-1542 Function names should comply with a naming convention
- Active
- relates to
-
SONARPHP-1018 S100: exclude overriding methods based on cross-file resolution of hierarchy
-
- Closed
-
- links to