package warts
- Alphabetic
- By Inheritance
- warts
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
CyclomaticComplexity extends WartTraverser
A
CyclomaticComplexity
rule for WartRemoverA
CyclomaticComplexity
rule for WartRemoverCyclomatic Complexity is a software metric. In general, the greater the Cyclomatic Complexity, the more difficult to maintain the software. It would be better to keep Cyclomatic Complexity low.
- See also
-
class
NamingClass extends WartTraverser
A
NamingClass
rule for WartRemoverA
NamingClass
rule for WartRemoverIt would be better to lint a class name.
-
class
NamingDef extends WartTraverser
A
NamingDef
rule for WartRemoverA
NamingDef
rule for WartRemoverIt would be better to lint a method name.
-
class
NamingObject extends WartTraverser
A
NamingObject
rule for WartRemoverA
NamingObject
rule for WartRemoverIt would be better to lint an object name.
-
class
NamingPackage extends WartTraverser
A
NamingPackage
rule for WartRemoverA
NamingPackage
rule for WartRemoverIt would be better to lint a package name.
-
class
NamingVal extends WartTraverser
A
NamingVal
rule for WartRemoverA
NamingVal
rule for WartRemoverIt would be better to lint a value name.
-
class
NamingVar extends WartTraverser
A
NamingVar
rule for WartRemoverA
NamingVar
rule for WartRemoverIt would be better to lint a variable name.
Value Members
-
object
Awaits extends WartTraverser
A
Awaits
rule for WartRemoverA
Awaits
rule for WartRemoverscala.concurrent.Await.result and scala.concurrent.Await.ready can be used to wait for the completion of scala.concurrent.Future. These methods block a current thread, and it may cause a performance problem. It would be better to avoid using these methods and to use other functions of scala.concurrent.Future such as scala.concurrent.Future.map
-
object
CyclomaticComplexity extends CyclomaticComplexity
A default CyclomaticComplexity rule
A default CyclomaticComplexity rule
The rule defines maximum cyclomatic complexity that can be allowed is 10
-
object
NamingClass extends NamingClass
A default NamingClass rule
A default NamingClass rule
A class name should match a regular expression
[A-Z$][A-Za-z0-9$]*
.- Note
Some library that is using a macro generates a class whose name contains
$
. It is difficult to exclude such classes from targets of WartRemover. Therefore, we permit$
to be a part of a class name.
-
object
NamingDef extends NamingDef
A default NamingDef rule
A default NamingDef rule
A method name should match a regular expression
[a-z_$][A-Za-z0-9$]*
.- Note
Some library that is using a macro generates a method whose name contains
$
. It is difficult to exclude such methods from targets of WartRemover. Therefore, we permit$
to be a part of a method name.
-
object
NamingObject extends NamingObject
A default NamingObject rule
A default NamingObject rule
An object name should match a regular expression
[A-Z][A-Za-z0-9]*
. -
object
NamingPackage extends NamingPackage
A default NamingPackage rule
A default NamingPackage rule
A package name should match a regular expression
[a-z\.]*
. -
object
NamingVal extends NamingVal
A default NamingVal rule
A default NamingVal rule
A value name should match a regular expression
[A-Za-z_$][A-Za-z0-9_$]*
.- Note
Some library that is using a macro generates a value whose name contains
$
. It is difficult to exclude such values from targets of WartRemover. Therefore, we permit$
to be a part of a value name.
-
object
NamingVar extends NamingVar
A default NamingVar rule
A default NamingVar rule
A variable name should match a regular expression
[a-z_$][A-Za-z0-9_$]*
.- Note
Some library that is using a macro generates a variable whose name contains
$
. It is difficult to exclude such variables from targets of WartRemover. Therefore, we permit$
to be a part of a variable name.