| Interface | Description |
|---|---|
| Compactable |
Provides a compact string representation.
|
| Config |
A configuration holds information about how to configure specific rules.
|
| ConfigAware | |
| Context | |
| Detektion | |
| Extension | |
| FileProcessListener |
Gather additional metrics about the analyzed kotlin file.
Pay attention to the thread policy of each function!
|
| Finding |
Base interface of detection findings. Inherits a bunch of useful behaviour
from sub interfaces.
|
| HasEntity |
Describes a source code position.
|
| HasMetrics |
Adds metric container behaviour.
|
| Notification | |
| RuleSetProvider |
A rule set provider, as the name states, is responsible for creating rule sets.
|
| Class | Description |
|---|---|
| AnnotationExcluder | |
| BaseConfig |
Convenient base configuration which parses/casts the configuration value based on the type of the default value.
|
| BaseRule | |
| CodeSmell |
A code smell is a finding, implementing its behaviour. Use this class to store
rule violations.
|
| CompositeConfig | |
| ConsoleReport | |
| Debt |
Debt describes the estimated amount of work needed to fix a given issue.
|
| DefaultContext | |
| DetektVisitor |
Base visitor for detekt rules.
|
| Entity |
Stores information about a specific code fragment.
|
| Issue |
An issue represents a problem in the codebase.
|
| JunkKt | |
| LazyRegex |
LazyRegex class provides a lazy evaluation of a Regex pattern for usages inside Rules.
It computes the value once when reaching the point of its usage and returns the same
value when requested again.
|
| Location |
Specifies a position within a source code fragment.
|
| Metric |
Metric type, can be an integer or double value. Internally it is stored as an integer,
but the conversion factor and is double attributes can be used to retrieve it as a double value.
|
| MetricKt | |
| MultiRule | |
| OutputReport | |
| ProjectExtensionKt | |
| ProjectMetric |
Anything that can be expressed as a number value for projects.
|
| Rule |
A rule defines how one specific code structure should look like. If code is found
which does not meet this structure, it is considered as harmful regarding maintainability
or readability.
|
| RuleSet |
A rule set is a collection of rules and must be defined within a rule set provider implementation.
|
| SignaturesKt | |
| SingleAssign<T> | |
| SourceLocation |
Stores line and column information of a location.
|
| SplitPattern | |
| SplitPatternKt | |
| SuppressibleKt | |
| TextLocation |
Stores character start and end positions of an text file.
|
| ThresholdRule |
Provides a threshold attribute for this rule, which is specified manually for default values
but can be also obtained from within a configuration object.
|
| ThresholdedCodeSmell |
Represents a code smell for which a specific metric can be determined which is responsible
for the existence of this rule violation.
|
| YamlConfig |
Config implementation using the yaml format. SubConfigurations can return sub maps according to the
yaml specification.
|
| Enum | Description |
|---|---|
| Severity |
Rules can classified into different severity grades. Maintainer can choose
a grade which is most harmful to their projects.
|