public class LargeClass
This rule reports large classes. Classes should generally have one responsibility. Large classes can indicate that the class does instead handle multiple responsibilities. Instead of doing many things at once prefer to split up large classes into smaller classes. These smaller classes are then easier to understand and handle less things.
Modifier and Type | Class and Description |
---|---|
static class |
LargeClass.Companion |
Modifier and Type | Field and Description |
---|---|
static LargeClass.Companion |
Companion |
static int |
DEFAULT_ACCEPTED_CLASS_LENGTH |
Constructor and Description |
---|
LargeClass(io.gitlab.arturbosch.detekt.api.Config config,
int threshold)
This rule reports large classes. Classes should generally have one responsibility. Large classes can indicate that
the class does instead handle multiple responsibilities. Instead of doing many things at once prefer to
split up large classes into smaller classes. These smaller classes are then easier to understand and handle less
things.
|
LargeClass()
This rule reports large classes. Classes should generally have one responsibility. Large classes can indicate that
the class does instead handle multiple responsibilities. Instead of doing many things at once prefer to
split up large classes into smaller classes. These smaller classes are then easier to understand and handle less
things.
|
Modifier and Type | Method and Description |
---|---|
io.gitlab.arturbosch.detekt.api.Issue |
getIssue() |
void |
postVisit(org.jetbrains.kotlin.psi.KtFile root) |
void |
preVisit(org.jetbrains.kotlin.psi.KtFile root) |
void |
visitClassOrObject(org.jetbrains.kotlin.psi.KtClassOrObject classOrObject) |
public static int DEFAULT_ACCEPTED_CLASS_LENGTH
public static LargeClass.Companion Companion
public LargeClass(io.gitlab.arturbosch.detekt.api.Config config, int threshold)
This rule reports large classes. Classes should generally have one responsibility. Large classes can indicate that the class does instead handle multiple responsibilities. Instead of doing many things at once prefer to split up large classes into smaller classes. These smaller classes are then easier to understand and handle less things.
public LargeClass()
This rule reports large classes. Classes should generally have one responsibility. Large classes can indicate that the class does instead handle multiple responsibilities. Instead of doing many things at once prefer to split up large classes into smaller classes. These smaller classes are then easier to understand and handle less things.
public io.gitlab.arturbosch.detekt.api.Issue getIssue()
public void preVisit(org.jetbrains.kotlin.psi.KtFile root)
public void postVisit(org.jetbrains.kotlin.psi.KtFile root)
public void visitClassOrObject(org.jetbrains.kotlin.psi.KtClassOrObject classOrObject)