Packages

p

lerna

warts

package warts

Lerna Wart Core

Overview

The package provides custom warts for WartRemover.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. warts
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class CyclomaticComplexity extends WartTraverser

    A CyclomaticComplexity rule for WartRemover

    A CyclomaticComplexity rule for WartRemover

    Cyclomatic 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

    CyclomaticComplexity

  2. class NamingClass extends WartTraverser

    A NamingClass rule for WartRemover

    A NamingClass rule for WartRemover

    It would be better to lint a class name.

  3. class NamingDef extends WartTraverser

    A NamingDef rule for WartRemover

    A NamingDef rule for WartRemover

    It would be better to lint a method name.

  4. class NamingObject extends WartTraverser

    A NamingObject rule for WartRemover

    A NamingObject rule for WartRemover

    It would be better to lint an object name.

  5. class NamingPackage extends WartTraverser

    A NamingPackage rule for WartRemover

    A NamingPackage rule for WartRemover

    It would be better to lint a package name.

  6. class NamingVal extends WartTraverser

    A NamingVal rule for WartRemover

    A NamingVal rule for WartRemover

    It would be better to lint a value name.

  7. class NamingVar extends WartTraverser

    A NamingVar rule for WartRemover

    A NamingVar rule for WartRemover

    It would be better to lint a variable name.

Value Members

  1. object Awaits extends WartTraverser

    A Awaits rule for WartRemover

    A Awaits rule for WartRemover

    scala.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

  2. object CyclomaticComplexity extends CyclomaticComplexity

    A default CyclomaticComplexity rule

    A default CyclomaticComplexity rule

    The rule defines maximum cyclomatic complexity that can be allowed is 10

  3. 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.

  4. 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.

  5. 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]*.

  6. object NamingPackage extends NamingPackage

    A default NamingPackage rule

    A default NamingPackage rule

    A package name should match a regular expression [a-z\.]*.

  7. 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.

  8. 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.

Inherited from AnyRef

Inherited from Any

Ungrouped