Skip to content

Files

Latest commit

 

History

History
35 lines (27 loc) · 1.16 KB

MethodArgumentNames.md

File metadata and controls

35 lines (27 loc) · 1.16 KB

Pattern: Invalid method argument name

Issue: -

Description

The Scala style guide recommends that method argument names conform to certain standards.

Parameters

NameDescriptionTypeDefault Value
regex Regular expression string ^[a-z][A-Za-z0-9]*$
ignoreRegex Regular expression to ignore string ^$

Example configuration

<check enabled="true" class="org.scalastyle.scalariform.MethodArgumentNamesChecker" level="warning">
 <parameters>
  <parameter name="regex">^[a-z][A-Za-z0-9]*$</parameter>
  <parameter name="ignoreRegex">^$</parameter>
 </parameters>
</check>