Update detekt-api documentation (#1786)

Execute *Task :detekt-api:dokka*
This commit is contained in:
M Schalk
2019-07-28 11:15:46 +02:00
committed by Artur Bosch
parent 7b821bd204
commit b50afd0ea2
80 changed files with 388 additions and 222 deletions

View File

@@ -14,9 +14,11 @@ title: alltypes - detekt-api
| [io.gitlab.arturbosch.detekt.api.ConfigAware](../io.gitlab.arturbosch.detekt.api/-config-aware/index.html) | Interface which is implemented by each Rule class to provide utility functions to retrieve specific or generic properties from the underlying detekt configuration file. |
| [io.gitlab.arturbosch.detekt.api.ConsoleReport](../io.gitlab.arturbosch.detekt.api/-console-report/index.html) | Extension point which describes how findings should be printed on the console. |
| [io.gitlab.arturbosch.detekt.api.Context](../io.gitlab.arturbosch.detekt.api/-context/index.html) | A context describes the storing and reporting mechanism of [Finding](../io.gitlab.arturbosch.detekt.api/-finding/index.html)'s inside a [Rule](../io.gitlab.arturbosch.detekt.api/-rule/index.html). Additionally it handles suppression and aliases management. |
| [io.gitlab.arturbosch.detekt.api.CorrectableCodeSmell](../io.gitlab.arturbosch.detekt.api/-correctable-code-smell/index.html) | Represents a code smell for that can be auto corrected. |
| [io.gitlab.arturbosch.detekt.api.Debt](../io.gitlab.arturbosch.detekt.api/-debt/index.html) | Debt describes the estimated amount of work needed to fix a given issue. |
| [io.gitlab.arturbosch.detekt.api.DefaultContext](../io.gitlab.arturbosch.detekt.api/-default-context/index.html) | Default [Context](../io.gitlab.arturbosch.detekt.api/-context/index.html) implementation. |
| [io.gitlab.arturbosch.detekt.api.Detektion](../io.gitlab.arturbosch.detekt.api/-detektion/index.html) | Storage for all kinds of findings and additional information which needs to be transferred from the detekt engine to the user. |
| [io.gitlab.arturbosch.detekt.api.internal.DetektPomModel](../io.gitlab.arturbosch.detekt.api.internal/-detekt-pom-model/index.html) | Adapted from https://github.com/pinterest/ktlint/blob/master/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt Licenced under the MIT licence - https://github.com/pinterest/ktlint/blob/master/LICENSE |
| [io.gitlab.arturbosch.detekt.api.DetektVisitor](../io.gitlab.arturbosch.detekt.api/-detekt-visitor/index.html) | Basic visitor which is used inside detekt. Guarantees a better looking name as the extended base class :). |
| [io.gitlab.arturbosch.detekt.api.Entity](../io.gitlab.arturbosch.detekt.api/-entity/index.html) | Stores information about a specific code fragment. |
| [io.gitlab.arturbosch.detekt.api.Extension](../io.gitlab.arturbosch.detekt.api/-extension/index.html) | Defines extension points in detekt. Currently supported extensions are: |
@@ -24,6 +26,7 @@ title: alltypes - detekt-api
| [io.gitlab.arturbosch.detekt.api.Finding](../io.gitlab.arturbosch.detekt.api/-finding/index.html) | Base interface of detection findings. Inherits a bunch of useful behaviour from sub interfaces. |
| [io.gitlab.arturbosch.detekt.api.HasEntity](../io.gitlab.arturbosch.detekt.api/-has-entity/index.html) | Describes a source code position. |
| [io.gitlab.arturbosch.detekt.api.HasMetrics](../io.gitlab.arturbosch.detekt.api/-has-metrics/index.html) | Adds metric container behaviour. |
| [io.gitlab.arturbosch.detekt.api.HierarchicalConfig](../io.gitlab.arturbosch.detekt.api/-hierarchical-config/index.html) | A configuration which keeps track of the config it got sub-config'ed from by the [subConfig](../io.gitlab.arturbosch.detekt.api/-config/sub-config.html) function. It's main usage is to recreate the property-path which was taken when using the [subConfig](../io.gitlab.arturbosch.detekt.api/-config/sub-config.html) function repeatedly. |
| [io.gitlab.arturbosch.detekt.api.Issue](../io.gitlab.arturbosch.detekt.api/-issue/index.html) | An issue represents a problem in the codebase. |
| [org.jetbrains.kotlin.psi.KtAnnotated](../io.gitlab.arturbosch.detekt.api/org.jetbrains.kotlin.psi.-kt-annotated/index.html) (extensions in package io.gitlab.arturbosch.detekt.api) | |
| [org.jetbrains.kotlin.psi.KtCallExpression](../io.gitlab.arturbosch.detekt.api.internal/org.jetbrains.kotlin.psi.-kt-call-expression/index.html) (extensions in package io.gitlab.arturbosch.detekt.api.internal) | |
@@ -36,6 +39,7 @@ title: alltypes - detekt-api
| [io.gitlab.arturbosch.detekt.api.MultiRule](../io.gitlab.arturbosch.detekt.api/-multi-rule/index.html) | |
| [io.gitlab.arturbosch.detekt.api.Notification](../io.gitlab.arturbosch.detekt.api/-notification/index.html) | Any kind of notification which should be printed to the console. For example when using the formatting rule set, any change to your kotlin file is a notification. |
| [io.gitlab.arturbosch.detekt.api.OutputReport](../io.gitlab.arturbosch.detekt.api/-output-report/index.html) | Translates detekt's result container - [Detektion](../io.gitlab.arturbosch.detekt.api/-detektion/index.html) - into an output report which is written inside a file. |
| [io.gitlab.arturbosch.detekt.api.internal.PathFilters](../io.gitlab.arturbosch.detekt.api.internal/-path-filters/index.html) | |
| [io.gitlab.arturbosch.detekt.api.ProjectMetric](../io.gitlab.arturbosch.detekt.api/-project-metric/index.html) | Anything that can be expressed as a number value for projects. |
| [io.gitlab.arturbosch.detekt.api.Rule](../io.gitlab.arturbosch.detekt.api/-rule/index.html) | 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. |
| [io.gitlab.arturbosch.detekt.api.RuleId](../io.gitlab.arturbosch.detekt.api/-rule-id.html) | The type to use when referring to rule ids giving it more context then a String would. |

View File

@@ -0,0 +1,13 @@
---
title: DetektPomModel.<init> - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api.internal](../index.html) / [DetektPomModel](index.html) / [&lt;init&gt;](./-init-.html)
# &lt;init&gt;
`DetektPomModel(project: Project)`
Adapted from https://github.com/pinterest/ktlint/blob/master/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt
Licenced under the MIT licence - https://github.com/pinterest/ktlint/blob/master/LICENSE

View File

@@ -0,0 +1,9 @@
---
title: DetektPomModel.getModelAspect - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api.internal](../index.html) / [DetektPomModel](index.html) / [getModelAspect](./get-model-aspect.html)
# getModelAspect
`fun <T : PomModelAspect?> getModelAspect(aspect: `[`Class`](https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html)`<`[`T`](get-model-aspect.html#T)`>): `[`T`](get-model-aspect.html#T)`?`

View File

@@ -0,0 +1,22 @@
---
title: DetektPomModel - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api.internal](../index.html) / [DetektPomModel](./index.html)
# DetektPomModel
`class DetektPomModel : UserDataHolderBase, PomModel`
Adapted from https://github.com/pinterest/ktlint/blob/master/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt
Licenced under the MIT licence - https://github.com/pinterest/ktlint/blob/master/LICENSE
### Constructors
| [&lt;init&gt;](-init-.html) | `DetektPomModel(project: Project)`<br>Adapted from https://github.com/pinterest/ktlint/blob/master/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt Licenced under the MIT licence - https://github.com/pinterest/ktlint/blob/master/LICENSE |
### Functions
| [getModelAspect](get-model-aspect.html) | `fun <T : PomModelAspect?> getModelAspect(aspect: `[`Class`](https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html)`<`[`T`](get-model-aspect.html#T)`>): `[`T`](get-model-aspect.html#T)`?` |
| [runTransaction](run-transaction.html) | `fun runTransaction(transaction: PomTransaction): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) |

View File

@@ -0,0 +1,9 @@
---
title: DetektPomModel.runTransaction - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api.internal](../index.html) / [DetektPomModel](index.html) / [runTransaction](./run-transaction.html)
# runTransaction
`fun runTransaction(transaction: PomTransaction): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

View File

@@ -10,12 +10,3 @@ title: McCabeVisitor.<init> - detekt-api
Counts the cyclomatic complexity of functions.
**Author**
Artur Bosch
**Author**
schalkms
**Author**
Sebastiano Poggi

View File

@@ -10,15 +10,6 @@ title: McCabeVisitor - detekt-api
Counts the cyclomatic complexity of functions.
**Author**
Artur Bosch
**Author**
schalkms
**Author**
Sebastiano Poggi
### Constructors
| [&lt;init&gt;](-init-.html) | `McCabeVisitor(ignoreSimpleWhenEntries: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`<br>Counts the cyclomatic complexity of functions. |

View File

@@ -0,0 +1,18 @@
---
title: PathFilters - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api.internal](../index.html) / [PathFilters](./index.html)
# PathFilters
`class PathFilters`
### Functions
| [isIgnored](is-ignored.html) | `fun isIgnored(path: `[`Path`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) |
### Companion Object Functions
| [of](of.html) | `fun of(includes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, excludes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`PathFilters`](./index.html)`?` |

View File

@@ -0,0 +1,9 @@
---
title: PathFilters.isIgnored - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api.internal](../index.html) / [PathFilters](index.html) / [isIgnored](./is-ignored.html)
# isIgnored
`fun isIgnored(path: `[`Path`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

View File

@@ -0,0 +1,9 @@
---
title: PathFilters.of - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api.internal](../index.html) / [PathFilters](index.html) / [of](./of.html)
# of
`fun of(includes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, excludes: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?): `[`PathFilters`](index.html)`?`

View File

@@ -0,0 +1,13 @@
---
title: createCompilerConfiguration - detekt-api
---
[detekt-api](../index.html) / [io.gitlab.arturbosch.detekt.api.internal](index.html) / [createCompilerConfiguration](./create-compiler-configuration.html)
# createCompilerConfiguration
`fun createCompilerConfiguration(pathsToAnalyze: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Path`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html)`>, classpath: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>, jvmTarget: JvmTarget): CompilerConfiguration`
Creates a compiler configuration for the kotlin compiler with all known sources and classpath jars.
Be aware that if any path of [pathsToAnalyze](create-compiler-configuration.html#io.gitlab.arturbosch.detekt.api.internal$createCompilerConfiguration(kotlin.collections.List((java.nio.file.Path)), kotlin.collections.List((kotlin.String)), org.jetbrains.kotlin.config.JvmTarget)/pathsToAnalyze) is a directory it is scanned for java and kotlin files.

View File

@@ -0,0 +1,13 @@
---
title: createKotlinCoreEnvironment - detekt-api
---
[detekt-api](../index.html) / [io.gitlab.arturbosch.detekt.api.internal](index.html) / [createKotlinCoreEnvironment](./create-kotlin-core-environment.html)
# createKotlinCoreEnvironment
`fun createKotlinCoreEnvironment(configuration: CompilerConfiguration = CompilerConfiguration()): KotlinCoreEnvironment`
Creates an environment instance which can be used to compile source code to KtFile's.
This environment also allows to modify the resulting AST files.

View File

@@ -8,7 +8,9 @@ title: io.gitlab.arturbosch.detekt.api.internal - detekt-api
### Types
| [DetektPomModel](-detekt-pom-model/index.html) | `class DetektPomModel : UserDataHolderBase, PomModel`<br>Adapted from https://github.com/pinterest/ktlint/blob/master/ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/KtLint.kt Licenced under the MIT licence - https://github.com/pinterest/ktlint/blob/master/LICENSE |
| [McCabeVisitor](-mc-cabe-visitor/index.html) | `class McCabeVisitor : `[`DetektVisitor`](../io.gitlab.arturbosch.detekt.api/-detekt-visitor/index.html)<br>Counts the cyclomatic complexity of functions. |
| [PathFilters](-path-filters/index.html) | `class PathFilters` |
### Extensions for External Classes
@@ -22,5 +24,7 @@ title: io.gitlab.arturbosch.detekt.api.internal - detekt-api
### Functions
| [createCompilerConfiguration](create-compiler-configuration.html) | `fun createCompilerConfiguration(pathsToAnalyze: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Path`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html)`>, classpath: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>, jvmTarget: JvmTarget): CompilerConfiguration`<br>Creates a compiler configuration for the kotlin compiler with all known sources and classpath jars. Be aware that if any path of [pathsToAnalyze](create-compiler-configuration.html#io.gitlab.arturbosch.detekt.api.internal$createCompilerConfiguration(kotlin.collections.List((java.nio.file.Path)), kotlin.collections.List((kotlin.String)), org.jetbrains.kotlin.config.JvmTarget)/pathsToAnalyze) is a directory it is scanned for java and kotlin files. |
| [createKotlinCoreEnvironment](create-kotlin-core-environment.html) | `fun createKotlinCoreEnvironment(configuration: CompilerConfiguration = CompilerConfiguration()): KotlinCoreEnvironment`<br>Creates an environment instance which can be used to compile source code to KtFile's. This environment also allows to modify the resulting AST files. |
| [pathMatcher](path-matcher.html) | `fun pathMatcher(pattern: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`PathMatcher`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/PathMatcher.html)<br>Converts given [pattern](path-matcher.html#io.gitlab.arturbosch.detekt.api.internal$pathMatcher(kotlin.String)/pattern) into a [PathMatcher](https://docs.oracle.com/javase/8/docs/api/java/nio/file/PathMatcher.html) specified by [FileSystem.getPathMatcher](https://docs.oracle.com/javase/8/docs/api/java/nio/file/FileSystem.html#getPathMatcher(java.lang.String)). We only support the "glob:" syntax to stay os independently. Internally a globbing pattern is transformed to a regex respecting the Windows file system. |

View File

@@ -6,4 +6,4 @@ title: absolutePath - detekt-api
# absolutePath
`fun KtFile.absolutePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`
`fun KtFile.absolutePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)

View File

@@ -6,6 +6,6 @@ title: io.gitlab.arturbosch.detekt.api.internal.org.jetbrains.kotlin.psi.KtFile
### Extensions for org.jetbrains.kotlin.psi.KtFile
| [absolutePath](absolute-path.html) | `fun KtFile.absolutePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` |
| [relativePath](relative-path.html) | `fun KtFile.relativePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` |
| [absolutePath](absolute-path.html) | `fun KtFile.absolutePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [relativePath](relative-path.html) | `fun KtFile.relativePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

View File

@@ -6,4 +6,4 @@ title: relativePath - detekt-api
# relativePath
`fun KtFile.relativePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`
`fun KtFile.relativePath(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)

View File

@@ -12,12 +12,3 @@ Primary use case for an AnnotationExcluder is to decide if a KtElement should be
excluded from further analysis. This is done by checking if a special annotation
is present over the element.
**Author**
Niklas Baudy
**Author**
Artur Bosch
**Author**
schalkms

View File

@@ -12,15 +12,6 @@ Primary use case for an AnnotationExcluder is to decide if a KtElement should be
excluded from further analysis. This is done by checking if a special annotation
is present over the element.
**Author**
Niklas Baudy
**Author**
Artur Bosch
**Author**
schalkms
### Constructors
| [&lt;init&gt;](-init-.html) | `AnnotationExcluder(root: KtFile, excludes: `[`SplitPattern`](../-split-pattern/index.html)`)`<br>Primary use case for an AnnotationExcluder is to decide if a KtElement should be excluded from further analysis. This is done by checking if a special annotation is present over the element. |

View File

@@ -6,7 +6,7 @@ title: BaseConfig - detekt-api
# BaseConfig
`abstract class BaseConfig : `[`Config`](../-config/index.html)
`abstract class BaseConfig : `[`HierarchicalConfig`](../-hierarchical-config/index.html)
Convenient base configuration which parses/casts the configuration value based on the type of the default value.
@@ -14,17 +14,15 @@ Convenient base configuration which parses/casts the configuration value based o
| [&lt;init&gt;](-init-.html) | `BaseConfig()`<br>Convenient base configuration which parses/casts the configuration value based on the type of the default value. |
### Inherited Properties
| [parent](../-hierarchical-config/parent.html) | `abstract val parent: `[`HierarchicalConfig.Parent`](../-hierarchical-config/-parent/index.html)`?`<br>Returns the parent config which encloses this config part. |
### Functions
| [tryParseBasedOnDefault](try-parse-based-on-default.html) | `open fun tryParseBasedOnDefault(result: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, defaultResult: `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`): `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |
| [valueOrDefaultInternal](value-or-default-internal.html) | `open fun valueOrDefaultInternal(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, result: `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`?, default: `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`): `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |
### Inherited Functions
| [subConfig](../-config/sub-config.html) | `abstract fun subConfig(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Config`](../-config/index.html)<br>Tries to retrieve part of the configuration based on given key. |
| [valueOrDefault](../-config/value-or-default.html) | `abstract fun <T : `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> valueOrDefault(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, default: `[`T`](../-config/value-or-default.html#T)`): `[`T`](../-config/value-or-default.html#T)<br>Retrieves a sub configuration or value based on given key. If configuration property cannot be found the specified default value is returned. |
| [valueOrNull](../-config/value-or-null.html) | `abstract fun <T : `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> valueOrNull(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`T`](../-config/value-or-null.html#T)`?`<br>Retrieves a sub configuration or value based on given key. If the configuration property cannot be found, null is returned. |
### Inheritors
| [YamlConfig](../-yaml-config/index.html) | `class YamlConfig : `[`BaseConfig`](./index.html)<br>Config implementation using the yaml format. SubConfigurations can return sub maps according to the yaml specification. |

View File

@@ -17,9 +17,3 @@ can describe further the kind of metrics.
If the design problem manifests by different source locations, references to these
locations can be stored in additional [Entity](../-entity/index.html)'s.
**Author**
Artur Bosch
**Author**
Marvin Ramin

View File

@@ -17,12 +17,6 @@ can describe further the kind of metrics.
If the design problem manifests by different source locations, references to these
locations can be stored in additional [Entity](../-entity/index.html)'s.
**Author**
Artur Bosch
**Author**
Marvin Ramin
### Constructors
| [&lt;init&gt;](-init-.html) | `CodeSmell(issue: `[`Issue`](../-issue/index.html)`, entity: `[`Entity`](../-entity/index.html)`, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, metrics: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Metric`](../-metric/index.html)`> = listOf(), references: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Entity`](../-entity/index.html)`> = listOf())`<br>A code smell indicates any possible design problem inside a program's source code. The type of a code smell is described by an [Issue](../-issue/index.html). |
@@ -45,5 +39,6 @@ Marvin Ramin
### Inheritors
| [CorrectableCodeSmell](../-correctable-code-smell/index.html) | `open class CorrectableCodeSmell : `[`CodeSmell`](./index.html)<br>Represents a code smell for that can be auto corrected. |
| [ThresholdedCodeSmell](../-thresholded-code-smell/index.html) | `open class ThresholdedCodeSmell : `[`CodeSmell`](./index.html)<br>Represents a code smell for which a specific metric can be determined which is responsible for the existence of this rule violation. |

View File

@@ -10,6 +10,3 @@ title: CompositeConfig.<init> - detekt-api
Wraps two different configuration which should be considered when retrieving properties.
**Author**
Artur Bosch

View File

@@ -10,9 +10,6 @@ title: CompositeConfig - detekt-api
Wraps two different configuration which should be considered when retrieving properties.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `CompositeConfig(lookFirst: `[`Config`](../-config/index.html)`, lookSecond: `[`Config`](../-config/index.html)`)`<br>Wraps two different configuration which should be considered when retrieving properties. |

View File

@@ -23,9 +23,6 @@ rule in the #RuleSetProvider interface. This is due the fact that users create t
rule set and all rules upfront and letting them 'sub config' the rule set config would
be error-prone.
**Author**
Artur Bosch
### Properties
| [active](active.html) | `open val active: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Is this rule specified as active in configuration? If an rule is not specified in the underlying configuration, we assume it should not be run. |

View File

@@ -0,0 +1,9 @@
---
title: Config.ACTIVE_KEY - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [Config](index.html) / [ACTIVE_KEY](./-a-c-t-i-v-e_-k-e-y.html)
# ACTIVE_KEY
`const val ACTIVE_KEY: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)

View File

@@ -7,7 +7,7 @@ title: Config.InvalidConfigurationError.<init> - detekt-api
# &lt;init&gt;
`InvalidConfigurationError(msg: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "Provided configuration file is invalid:" +
" Structure must be from type Map<String,Any>!")`
" Structure must be from type Map<String,Any>!")`
Is thrown when loading a configuration results in errors.

View File

@@ -13,5 +13,5 @@ Is thrown when loading a configuration results in errors.
### Constructors
| [&lt;init&gt;](-init-.html) | `InvalidConfigurationError(msg: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "Provided configuration file is invalid:" +
" Structure must be from type Map<String,Any>!")`<br>Is thrown when loading a configuration results in errors. |
" Structure must be from type Map<String,Any>!")`<br>Is thrown when loading a configuration results in errors. |

View File

@@ -0,0 +1,9 @@
---
title: Config.PRIMITIVES - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [Config](index.html) / [PRIMITIVES](./-p-r-i-m-i-t-i-v-e-s.html)
# PRIMITIVES
`val PRIMITIVES: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`KClass`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)`<out `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`>>`

View File

@@ -10,12 +10,6 @@ title: Config - detekt-api
A configuration holds information about how to configure specific rules.
**Author**
Artur Bosch
**Author**
schalkms
### Exceptions
| [InvalidConfigurationError](-invalid-configuration-error/index.html) | `class InvalidConfigurationError : `[`RuntimeException`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-runtime-exception/index.html)<br>Is thrown when loading a configuration results in errors. |
@@ -28,13 +22,15 @@ schalkms
### Companion Object Properties
| [ACTIVE_KEY](-a-c-t-i-v-e_-k-e-y.html) | `const val ACTIVE_KEY: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [empty](empty.html) | `val empty: `[`Config`](./index.html)<br>An empty configuration with no properties. This config should only be used in test cases. Always returns the default value except when 'active' is queried, it returns true . |
| [EXCLUDES_KEY](-e-x-c-l-u-d-e-s_-k-e-y.html) | `const val EXCLUDES_KEY: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [INCLUDES_KEY](-i-n-c-l-u-d-e-s_-k-e-y.html) | `const val INCLUDES_KEY: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [PRIMITIVES](-p-r-i-m-i-t-i-v-e-s.html) | `val PRIMITIVES: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`KClass`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)`<out `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`>>` |
### Inheritors
| [BaseConfig](../-base-config/index.html) | `abstract class BaseConfig : `[`Config`](./index.html)<br>Convenient base configuration which parses/casts the configuration value based on the type of the default value. |
| [CompositeConfig](../-composite-config/index.html) | `class CompositeConfig : `[`Config`](./index.html)<br>Wraps two different configuration which should be considered when retrieving properties. |
| [ConfigAware](../-config-aware/index.html) | `interface ConfigAware : `[`Config`](./index.html)<br>Interface which is implemented by each Rule class to provide utility functions to retrieve specific or generic properties from the underlying detekt configuration file. |
| [HierarchicalConfig](../-hierarchical-config/index.html) | `interface HierarchicalConfig : `[`Config`](./index.html)<br>A configuration which keeps track of the config it got sub-config'ed from by the [subConfig](sub-config.html) function. It's main usage is to recreate the property-path which was taken when using the [subConfig](sub-config.html) function repeatedly. |

View File

@@ -14,6 +14,3 @@ Additional [ConsoleReport](index.html)'s can be made available through the [java
If the default reporting mechanism should be turned off, exclude the entry 'FindingsReport'
in the 'console-reports' property of a detekt yaml config.
**Author**
Artur Bosch

View File

@@ -14,9 +14,6 @@ Additional [ConsoleReport](./index.html)'s can be made available through the [ja
If the default reporting mechanism should be turned off, exclude the entry 'FindingsReport'
in the 'console-reports' property of a detekt yaml config.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `ConsoleReport()`<br>Extension point which describes how findings should be printed on the console. |

View File

@@ -14,12 +14,6 @@ Additionally it handles suppression and aliases management.
The detekt engine retrieves the findings after each KtFile visit and resets the context
before the next KtFile.
**Author**
Artur Bosch
**Author**
Marvin Ramin
### Properties
| [findings](findings.html) | `abstract val findings: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Finding`](../-finding/index.html)`>` |

View File

@@ -0,0 +1,16 @@
---
title: CorrectableCodeSmell.<init> - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [CorrectableCodeSmell](index.html) / [&lt;init&gt;](./-init-.html)
# &lt;init&gt;
`CorrectableCodeSmell(issue: `[`Issue`](../-issue/index.html)`, entity: `[`Entity`](../-entity/index.html)`, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, metrics: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Metric`](../-metric/index.html)`> = listOf(), references: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Entity`](../-entity/index.html)`> = listOf(), autoCorrectEnabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`
Represents a code smell for that can be auto corrected.
**See Also**
[CodeSmell](../-code-smell/index.html)

View File

@@ -0,0 +1,9 @@
---
title: CorrectableCodeSmell.autoCorrectEnabled - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [CorrectableCodeSmell](index.html) / [autoCorrectEnabled](./auto-correct-enabled.html)
# autoCorrectEnabled
`val autoCorrectEnabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

View File

@@ -0,0 +1,43 @@
---
title: CorrectableCodeSmell - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [CorrectableCodeSmell](./index.html)
# CorrectableCodeSmell
`open class CorrectableCodeSmell : `[`CodeSmell`](../-code-smell/index.html)
Represents a code smell for that can be auto corrected.
**See Also**
[CodeSmell](../-code-smell/index.html)
### Constructors
| [&lt;init&gt;](-init-.html) | `CorrectableCodeSmell(issue: `[`Issue`](../-issue/index.html)`, entity: `[`Entity`](../-entity/index.html)`, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, metrics: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Metric`](../-metric/index.html)`> = listOf(), references: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Entity`](../-entity/index.html)`> = listOf(), autoCorrectEnabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`<br>Represents a code smell for that can be auto corrected. |
### Properties
| [autoCorrectEnabled](auto-correct-enabled.html) | `val autoCorrectEnabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) |
### Inherited Properties
| [entity](../-code-smell/entity.html) | `open val entity: `[`Entity`](../-entity/index.html) |
| [id](../-code-smell/id.html) | `open val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [issue](../-code-smell/issue.html) | `val issue: `[`Issue`](../-issue/index.html) |
| [message](../-code-smell/message.html) | `open val message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [metrics](../-code-smell/metrics.html) | `open val metrics: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Metric`](../-metric/index.html)`>` |
| [references](../-code-smell/references.html) | `open val references: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Entity`](../-entity/index.html)`>` |
### Functions
| [toString](to-string.html) | `open fun toString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
### Inherited Functions
| [compact](../-code-smell/compact.html) | `open fun compact(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [compactWithSignature](../-code-smell/compact-with-signature.html) | `open fun compactWithSignature(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |
| [messageOrDescription](../-code-smell/message-or-description.html) | `open fun messageOrDescription(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

View File

@@ -0,0 +1,12 @@
---
title: CorrectableCodeSmell.toString - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [CorrectableCodeSmell](index.html) / [toString](./to-string.html)
# toString
`open fun toString(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Overrides [CodeSmell.toString](../-code-smell/to-string.html)

View File

@@ -11,6 +11,3 @@ title: DetektVisitor.<init> - detekt-api
Basic visitor which is used inside detekt.
Guarantees a better looking name as the extended base class :).
**Author**
Artur Bosch

View File

@@ -11,9 +11,6 @@ title: DetektVisitor - detekt-api
Basic visitor which is used inside detekt.
Guarantees a better looking name as the extended base class :).
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `DetektVisitor()`<br>Basic visitor which is used inside detekt. Guarantees a better looking name as the extended base class :). |

View File

@@ -11,9 +11,6 @@ title: Detektion - detekt-api
Storage for all kinds of findings and additional information
which needs to be transferred from the detekt engine to the user.
**Author**
Artur Bosch
### Properties
| [findings](findings.html) | `abstract val findings: `[`Map`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)`<`[`RuleSetId`](../-rule-set-id.html)`, `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Finding`](../-finding/index.html)`>>` |

View File

@@ -10,6 +10,3 @@ title: Entity.<init> - detekt-api
Stores information about a specific code fragment.
**Author**
Artur Bosch

View File

@@ -10,9 +10,6 @@ title: Entity - detekt-api
Stores information about a specific code fragment.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `Entity(name: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, className: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, signature: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, location: `[`Location`](../-location/index.html)`, ktElement: KtElement? = null)`<br>Stores information about a specific code fragment. |

View File

@@ -15,9 +15,6 @@ Currently supported extensions are:
* [ConsoleReport](../-console-report/index.html)
* [OutputReport](../-output-report/index.html)
**Author**
Artur Bosch
### Properties
| [id](id.html) | `open val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Name of the extension. |

View File

@@ -11,9 +11,6 @@ title: FileProcessListener - detekt-api
Gather additional metrics about the analyzed kotlin file.
Pay attention to the thread policy of each function!
**Author**
Artur Bosch
### Inherited Properties
| [id](../-extension/id.html) | `open val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Name of the extension. |

View File

@@ -14,9 +14,6 @@ from sub interfaces.
Basic behaviour of a finding is that is can be assigned to an id and a source code position described as
an entity. Metrics and entity references can also considered for deeper characterization.
**Author**
Artur Bosch
### Properties
| [id](id.html) | `abstract val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

View File

@@ -0,0 +1,12 @@
---
title: HierarchicalConfig.Parent.<init> - detekt-api
---
[detekt-api](../../../index.html) / [io.gitlab.arturbosch.detekt.api](../../index.html) / [HierarchicalConfig](../index.html) / [Parent](index.html) / [&lt;init&gt;](./-init-.html)
# &lt;init&gt;
`Parent(config: `[`Config`](../../-config/index.html)`, key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)`
Keeps track of which key was taken to [subConfig](../../-config/sub-config.html) this configuration.

View File

@@ -0,0 +1,9 @@
---
title: HierarchicalConfig.Parent.config - detekt-api
---
[detekt-api](../../../index.html) / [io.gitlab.arturbosch.detekt.api](../../index.html) / [HierarchicalConfig](../index.html) / [Parent](index.html) / [config](./config.html)
# config
`val config: `[`Config`](../../-config/index.html)

View File

@@ -0,0 +1,21 @@
---
title: HierarchicalConfig.Parent - detekt-api
---
[detekt-api](../../../index.html) / [io.gitlab.arturbosch.detekt.api](../../index.html) / [HierarchicalConfig](../index.html) / [Parent](./index.html)
# Parent
`data class Parent`
Keeps track of which key was taken to [subConfig](../../-config/sub-config.html) this configuration.
### Constructors
| [&lt;init&gt;](-init-.html) | `Parent(config: `[`Config`](../../-config/index.html)`, key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)`<br>Keeps track of which key was taken to [subConfig](../../-config/sub-config.html) this configuration. |
### Properties
| [config](config.html) | `val config: `[`Config`](../../-config/index.html) |
| [key](key.html) | `val key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

View File

@@ -0,0 +1,9 @@
---
title: HierarchicalConfig.Parent.key - detekt-api
---
[detekt-api](../../../index.html) / [io.gitlab.arturbosch.detekt.api](../../index.html) / [HierarchicalConfig](../index.html) / [Parent](index.html) / [key](./key.html)
# key
`val key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)

View File

@@ -0,0 +1,31 @@
---
title: HierarchicalConfig - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [HierarchicalConfig](./index.html)
# HierarchicalConfig
`interface HierarchicalConfig : `[`Config`](../-config/index.html)
A configuration which keeps track of the config it got sub-config'ed from by the [subConfig](../-config/sub-config.html) function.
It's main usage is to recreate the property-path which was taken when using the [subConfig](../-config/sub-config.html) function repeatedly.
### Types
| [Parent](-parent/index.html) | `data class Parent`<br>Keeps track of which key was taken to [subConfig](../-config/sub-config.html) this configuration. |
### Properties
| [parent](parent.html) | `abstract val parent: `[`HierarchicalConfig.Parent`](-parent/index.html)`?`<br>Returns the parent config which encloses this config part. |
### Inherited Functions
| [subConfig](../-config/sub-config.html) | `abstract fun subConfig(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Config`](../-config/index.html)<br>Tries to retrieve part of the configuration based on given key. |
| [valueOrDefault](../-config/value-or-default.html) | `abstract fun <T : `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> valueOrDefault(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, default: `[`T`](../-config/value-or-default.html#T)`): `[`T`](../-config/value-or-default.html#T)<br>Retrieves a sub configuration or value based on given key. If configuration property cannot be found the specified default value is returned. |
| [valueOrNull](../-config/value-or-null.html) | `abstract fun <T : `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> valueOrNull(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`T`](../-config/value-or-null.html#T)`?`<br>Retrieves a sub configuration or value based on given key. If the configuration property cannot be found, null is returned. |
### Inheritors
| [BaseConfig](../-base-config/index.html) | `abstract class BaseConfig : `[`HierarchicalConfig`](./index.html)<br>Convenient base configuration which parses/casts the configuration value based on the type of the default value. |

View File

@@ -0,0 +1,12 @@
---
title: HierarchicalConfig.parent - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [HierarchicalConfig](index.html) / [parent](./parent.html)
# parent
`abstract val parent: `[`HierarchicalConfig.Parent`](-parent/index.html)`?`
Returns the parent config which encloses this config part.

View File

@@ -10,12 +10,3 @@ title: Issue.<init> - detekt-api
An issue represents a problem in the codebase.
**Author**
Artur Bosch
**Author**
Marvin Ramin
**Author**
schalkms

View File

@@ -10,15 +10,6 @@ title: Issue - detekt-api
An issue represents a problem in the codebase.
**Author**
Artur Bosch
**Author**
Marvin Ramin
**Author**
schalkms
### Constructors
| [&lt;init&gt;](-init-.html) | `Issue(id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, severity: `[`Severity`](../-severity/index.html)`, description: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, debt: `[`Debt`](../-debt/index.html)`)`<br>An issue represents a problem in the codebase. |

View File

@@ -14,6 +14,3 @@ value when requested again.
`key` &amp; `default` are used to retrieve a value from config.
**Author**
Pavlos-Petros Tournaris

View File

@@ -14,9 +14,6 @@ value when requested again.
`key` &amp; `default` are used to retrieve a value from config.
**Author**
Pavlos-Petros Tournaris
### Constructors
| [&lt;init&gt;](-init-.html) | `LazyRegex(key: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, default: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)`<br>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. |

View File

@@ -10,6 +10,3 @@ title: Location.<init> - detekt-api
Specifies a position within a source code fragment.
**Author**
Artur Bosch

View File

@@ -10,9 +10,6 @@ title: Location - detekt-api
Specifies a position within a source code fragment.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `Location(source: `[`SourceLocation`](../-source-location/index.html)`, text: `[`TextLocation`](../-text-location/index.html)`, locationString: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, file: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)`<br>Specifies a position within a source code fragment. |

View File

@@ -11,6 +11,3 @@ title: Metric.<init> - detekt-api
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.
**Author**
Artur Bosch

View File

@@ -11,9 +11,6 @@ title: Metric - detekt-api
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.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `Metric(type: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, value: `[`Double`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, threshold: `[`Double`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, conversionFactor: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = DEFAULT_FLOAT_CONVERSION_FACTOR)``Metric(type: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, value: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, threshold: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, isDouble: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false, conversionFactor: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = DEFAULT_FLOAT_CONVERSION_FACTOR)`<br>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. |

View File

@@ -15,7 +15,6 @@ title: MultiRule - detekt-api
### Properties
| [activeRules](active-rules.html) | `var activeRules: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`Rule`](../-rule/index.html)`>` |
| [ruleFilters](rule-filters.html) | `var ruleFilters: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`RuleId`](../-rule-id.html)`>` |
| [rules](rules.html) | `abstract val rules: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Rule`](../-rule/index.html)`>` |
### Inherited Properties

View File

@@ -12,9 +12,6 @@ Any kind of notification which should be printed to the console.
For example when using the formatting rule set, any change to
your kotlin file is a notification.
**Author**
Artur Bosch
### Properties
| [message](message.html) | `abstract val message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) |

View File

@@ -11,9 +11,3 @@ title: OutputReport.<init> - detekt-api
Translates detekt's result container - [Detektion](../-detektion/index.html) - into an output report
which is written inside a file.
**Author**
Artur Bosch
**Author**
Marvin Ramin

View File

@@ -11,12 +11,6 @@ title: OutputReport - detekt-api
Translates detekt's result container - [Detektion](../-detektion/index.html) - into an output report
which is written inside a file.
**Author**
Artur Bosch
**Author**
Marvin Ramin
### Constructors
| [&lt;init&gt;](-init-.html) | `OutputReport()`<br>Translates detekt's result container - [Detektion](../-detektion/index.html) - into an output report which is written inside a file. |

View File

@@ -10,6 +10,3 @@ title: ProjectMetric.<init> - detekt-api
Anything that can be expressed as a number value for projects.
**Author**
Artur Bosch

View File

@@ -10,9 +10,6 @@ title: ProjectMetric - detekt-api
Anything that can be expressed as a number value for projects.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `ProjectMetric(type: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, value: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, priority: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = -1, isDouble: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false, conversionFactor: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = DEFAULT_FLOAT_CONVERSION_FACTOR)`<br>Anything that can be expressed as a number value for projects. |

View File

@@ -13,9 +13,6 @@ A rule set provider, as the name states, is responsible for creating rule sets.
When writing own rule set providers make sure to register them according the ServiceLoader documentation.
http://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html
**Author**
Artur Bosch
### Properties
| [ruleSetId](rule-set-id.html) | `abstract val ruleSetId: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Every rule set must be pre-configured with an ID to validate if this rule set must be created for current analysis. |

View File

@@ -10,6 +10,3 @@ title: RuleSet.<init> - detekt-api
A rule set is a collection of rules and must be defined within a rule set provider implementation.
**Author**
Artur Bosch

View File

@@ -11,11 +11,3 @@ title: RuleSet.accept - detekt-api
Visits given file with all rules of this rule set, returning a list
of all code smell findings.
`fun accept(file: KtFile, ruleFilters: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`RuleId`](../-rule-id.html)`>, bindingContext: BindingContext = BindingContext.EMPTY): `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Finding`](../-finding/index.html)`>`
Visits given file with all non-filtered rules of this rule set.
If a rule is a [MultiRule](../-multi-rule/index.html) the filters are passed to it via a setter
and later used to filter sub rules of the [MultiRule](../-multi-rule/index.html).
A list of findings is returned for given KtFile

View File

@@ -10,9 +10,6 @@ title: RuleSet - detekt-api
A rule set is a collection of rules and must be defined within a rule set provider implementation.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `RuleSet(id: `[`RuleSetId`](../-rule-set-id.html)`, rules: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`BaseRule`](../-base-rule/index.html)`>)`<br>A rule set is a collection of rules and must be defined within a rule set provider implementation. |
@@ -20,9 +17,10 @@ Artur Bosch
### Properties
| [id](id.html) | `val id: `[`RuleSetId`](../-rule-set-id.html) |
| [pathFilters](path-filters.html) | `var pathFilters: `[`PathFilters`](../../io.gitlab.arturbosch.detekt.api.internal/-path-filters/index.html)`?`<br>Is used to determine if a given [KtFile](#) should be analyzed at all. |
| [rules](rules.html) | `val rules: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`BaseRule`](../-base-rule/index.html)`>` |
### Functions
| [accept](accept.html) | `fun accept(file: KtFile, bindingContext: BindingContext = BindingContext.EMPTY): `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Finding`](../-finding/index.html)`>`<br>Visits given file with all rules of this rule set, returning a list of all code smell findings.`fun accept(file: KtFile, ruleFilters: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`RuleId`](../-rule-id.html)`>, bindingContext: BindingContext = BindingContext.EMPTY): `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Finding`](../-finding/index.html)`>`<br>Visits given file with all non-filtered rules of this rule set. If a rule is a [MultiRule](../-multi-rule/index.html) the filters are passed to it via a setter and later used to filter sub rules of the [MultiRule](../-multi-rule/index.html). |
| [accept](accept.html) | `fun accept(file: KtFile, bindingContext: BindingContext = BindingContext.EMPTY): `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Finding`](../-finding/index.html)`>`<br>Visits given file with all rules of this rule set, returning a list of all code smell findings. |

View File

@@ -0,0 +1,12 @@
---
title: RuleSet.pathFilters - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [RuleSet](index.html) / [pathFilters](./path-filters.html)
# pathFilters
`var pathFilters: `[`PathFilters`](../../io.gitlab.arturbosch.detekt.api.internal/-path-filters/index.html)`?`
Is used to determine if a given [KtFile](#) should be analyzed at all.

View File

@@ -16,9 +16,3 @@ A rule is implemented using the visitor pattern and should be started using the
function. If calculations must be done before or after the visiting process, here are
two predefined (preVisit/postVisit) functions which can be overridden to setup/teardown additional data.
**Author**
Artur Bosch
**Author**
Marvin Ramin

View File

@@ -0,0 +1,16 @@
---
title: Rule.filters - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [Rule](index.html) / [filters](./filters.html)
# filters
`open val filters: `[`PathFilters`](../../io.gitlab.arturbosch.detekt.api.internal/-path-filters/index.html)`?`
Rules are aware of the paths they should run on via configuration properties.
**Getter**
Rules are aware of the paths they should run on via configuration properties.

View File

@@ -16,12 +16,6 @@ A rule is implemented using the visitor pattern and should be started using the
function. If calculations must be done before or after the visiting process, here are
two predefined (preVisit/postVisit) functions which can be overridden to setup/teardown additional data.
**Author**
Artur Bosch
**Author**
Marvin Ramin
### Constructors
| [&lt;init&gt;](-init-.html) | `Rule(ruleSetConfig: `[`Config`](../-config/index.html)` = Config.empty, ruleContext: `[`Context`](../-context/index.html)` = DefaultContext())`<br>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. |
@@ -30,8 +24,7 @@ Marvin Ramin
| [aliases](aliases.html) | `val aliases: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`<br>List of rule ids which can optionally be used in suppress annotations to refer to this rule. |
| [defaultRuleIdAliases](default-rule-id-aliases.html) | `open val defaultRuleIdAliases: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`<br>The default names which can be used instead of this #ruleId to refer to this rule in suppression's. |
| [excludes](excludes.html) | `open val excludes: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`PathMatcher`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/PathMatcher.html)`>?`<br>When specified this rule will not run on KtFile's having a path matching any exclusion pattern. |
| [includes](includes.html) | `open val includes: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`PathMatcher`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/PathMatcher.html)`>?`<br>When specified this rule only runs on KtFile's with paths matching any inclusion pattern. |
| [filters](filters.html) | `open val filters: `[`PathFilters`](../../io.gitlab.arturbosch.detekt.api.internal/-path-filters/index.html)`?`<br>Rules are aware of the paths they should run on via configuration properties. |
| [issue](issue.html) | `abstract val issue: `[`Issue`](../-issue/index.html)<br>A rule is motivated to point out a specific issue in the code base. |
| [ruleId](rule-id.html) | `val ruleId: `[`RuleId`](../-rule-id.html)<br>An id this rule is identified with. Conventionally the rule id is derived from the issue id as these two classes have a coexistence. |
| [ruleSetConfig](rule-set-config.html) | `open val ruleSetConfig: `[`Config`](../-config/index.html)<br>Wrapped configuration of the ruleSet this rule is in. Use #valueOrDefault function to retrieve properties specified for the rule implementing this interface instead. Only use this property directly if you need a specific rule set property. |

View File

@@ -11,6 +11,3 @@ title: SingleAssign.<init> - detekt-api
Allows to assign a property just once.
Further assignments result in [IllegalStateException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html)'s.
**Author**
Artur Bosch

View File

@@ -11,9 +11,6 @@ title: SingleAssign - detekt-api
Allows to assign a property just once.
Further assignments result in [IllegalStateException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html)'s.
**Author**
Artur Bosch
### Constructors
| [&lt;init&gt;](-init-.html) | `SingleAssign()`<br>Allows to assign a property just once. Further assignments result in [IllegalStateException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html)'s. |

View File

@@ -23,8 +23,7 @@ but can be also obtained from within a configuration object.
| [aliases](../-rule/aliases.html) | `val aliases: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`<br>List of rule ids which can optionally be used in suppress annotations to refer to this rule. |
| [defaultRuleIdAliases](../-rule/default-rule-id-aliases.html) | `open val defaultRuleIdAliases: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`<br>The default names which can be used instead of this #ruleId to refer to this rule in suppression's. |
| [excludes](../-rule/excludes.html) | `open val excludes: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`PathMatcher`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/PathMatcher.html)`>?`<br>When specified this rule will not run on KtFile's having a path matching any exclusion pattern. |
| [includes](../-rule/includes.html) | `open val includes: `[`Set`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[`PathMatcher`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/PathMatcher.html)`>?`<br>When specified this rule only runs on KtFile's with paths matching any inclusion pattern. |
| [filters](../-rule/filters.html) | `open val filters: `[`PathFilters`](../../io.gitlab.arturbosch.detekt.api.internal/-path-filters/index.html)`?`<br>Rules are aware of the paths they should run on via configuration properties. |
| [issue](../-rule/issue.html) | `abstract val issue: `[`Issue`](../-issue/index.html)<br>A rule is motivated to point out a specific issue in the code base. |
| [ruleId](../-rule/rule-id.html) | `val ruleId: `[`RuleId`](../-rule-id.html)<br>An id this rule is identified with. Conventionally the rule id is derived from the issue id as these two classes have a coexistence. |
| [ruleSetConfig](../-rule/rule-set-config.html) | `open val ruleSetConfig: `[`Config`](../-config/index.html)<br>Wrapped configuration of the ruleSet this rule is in. Use #valueOrDefault function to retrieve properties specified for the rule implementing this interface instead. Only use this property directly if you need a specific rule set property. |

View File

@@ -11,3 +11,7 @@ title: ThresholdedCodeSmell.<init> - detekt-api
Represents a code smell for which a specific metric can be determined which is responsible
for the existence of this rule violation.
**See Also**
[CodeSmell](../-code-smell/index.html)

View File

@@ -11,6 +11,10 @@ title: ThresholdedCodeSmell - detekt-api
Represents a code smell for which a specific metric can be determined which is responsible
for the existence of this rule violation.
**See Also**
[CodeSmell](../-code-smell/index.html)
### Constructors
| [&lt;init&gt;](-init-.html) | `ThresholdedCodeSmell(issue: `[`Issue`](../-issue/index.html)`, entity: `[`Entity`](../-entity/index.html)`, metric: `[`Metric`](../-metric/index.html)`, message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, references: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Entity`](../-entity/index.html)`> = emptyList())`<br>Represents a code smell for which a specific metric can be determined which is responsible for the existence of this rule violation. |

View File

@@ -11,11 +11,9 @@ title: YamlConfig - detekt-api
Config implementation using the yaml format. SubConfigurations can return sub maps according to the
yaml specification.
**Author**
Artur Bosch
### Properties
| [parent](parent.html) | `val parent: `[`HierarchicalConfig.Parent`](../-hierarchical-config/-parent/index.html)`?`<br>Returns the parent config which encloses this config part. |
| [properties](properties.html) | `val properties: `[`Map`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`>` |
### Functions

View File

@@ -0,0 +1,14 @@
---
title: YamlConfig.parent - detekt-api
---
[detekt-api](../../index.html) / [io.gitlab.arturbosch.detekt.api](../index.html) / [YamlConfig](index.html) / [parent](./parent.html)
# parent
`val parent: `[`HierarchicalConfig.Parent`](../-hierarchical-config/-parent/index.html)`?`
Overrides [HierarchicalConfig.parent](../-hierarchical-config/parent.html)
Returns the parent config which encloses this config part.

View File

@@ -9,7 +9,7 @@ title: io.gitlab.arturbosch.detekt.api - detekt-api
### Types
| [AnnotationExcluder](-annotation-excluder/index.html) | `class AnnotationExcluder`<br>Primary use case for an AnnotationExcluder is to decide if a KtElement should be excluded from further analysis. This is done by checking if a special annotation is present over the element. |
| [BaseConfig](-base-config/index.html) | `abstract class BaseConfig : `[`Config`](-config/index.html)<br>Convenient base configuration which parses/casts the configuration value based on the type of the default value. |
| [BaseConfig](-base-config/index.html) | `abstract class BaseConfig : `[`HierarchicalConfig`](-hierarchical-config/index.html)<br>Convenient base configuration which parses/casts the configuration value based on the type of the default value. |
| [BaseRule](-base-rule/index.html) | `abstract class BaseRule : `[`DetektVisitor`](-detekt-visitor/index.html)`, `[`Context`](-context/index.html)<br>Defines the visiting mechanism for KtFile's. |
| [CodeSmell](-code-smell/index.html) | `open class CodeSmell : `[`Finding`](-finding/index.html)<br>A code smell indicates any possible design problem inside a program's source code. The type of a code smell is described by an [Issue](-issue/index.html). |
| [Compactable](-compactable/index.html) | `interface Compactable`<br>Provides a compact string representation. |
@@ -18,6 +18,7 @@ title: io.gitlab.arturbosch.detekt.api - detekt-api
| [ConfigAware](-config-aware/index.html) | `interface ConfigAware : `[`Config`](-config/index.html)<br>Interface which is implemented by each Rule class to provide utility functions to retrieve specific or generic properties from the underlying detekt configuration file. |
| [ConsoleReport](-console-report/index.html) | `abstract class ConsoleReport : `[`Extension`](-extension/index.html)<br>Extension point which describes how findings should be printed on the console. |
| [Context](-context/index.html) | `interface Context`<br>A context describes the storing and reporting mechanism of [Finding](-finding/index.html)'s inside a [Rule](-rule/index.html). Additionally it handles suppression and aliases management. |
| [CorrectableCodeSmell](-correctable-code-smell/index.html) | `open class CorrectableCodeSmell : `[`CodeSmell`](-code-smell/index.html)<br>Represents a code smell for that can be auto corrected. |
| [Debt](-debt/index.html) | `data class Debt`<br>Debt describes the estimated amount of work needed to fix a given issue. |
| [DefaultContext](-default-context/index.html) | `open class DefaultContext : `[`Context`](-context/index.html)<br>Default [Context](-context/index.html) implementation. |
| [Detektion](-detektion/index.html) | `interface Detektion`<br>Storage for all kinds of findings and additional information which needs to be transferred from the detekt engine to the user. |
@@ -28,6 +29,7 @@ title: io.gitlab.arturbosch.detekt.api - detekt-api
| [Finding](-finding/index.html) | `interface Finding : `[`Compactable`](-compactable/index.html)`, `[`HasEntity`](-has-entity/index.html)`, `[`HasMetrics`](-has-metrics/index.html)<br>Base interface of detection findings. Inherits a bunch of useful behaviour from sub interfaces. |
| [HasEntity](-has-entity/index.html) | `interface HasEntity`<br>Describes a source code position. |
| [HasMetrics](-has-metrics/index.html) | `interface HasMetrics`<br>Adds metric container behaviour. |
| [HierarchicalConfig](-hierarchical-config/index.html) | `interface HierarchicalConfig : `[`Config`](-config/index.html)<br>A configuration which keeps track of the config it got sub-config'ed from by the [subConfig](-config/sub-config.html) function. It's main usage is to recreate the property-path which was taken when using the [subConfig](-config/sub-config.html) function repeatedly. |
| [Issue](-issue/index.html) | `data class Issue`<br>An issue represents a problem in the codebase. |
| [LazyRegex](-lazy-regex/index.html) | `class LazyRegex : `[`ReadOnlyProperty`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/-read-only-property/index.html)`<`[`Rule`](-rule/index.html)`, `[`Regex`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-regex/index.html)`>`<br>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](-location/index.html) | `data class Location : `[`Compactable`](-compactable/index.html)<br>Specifies a position within a source code fragment. |
@@ -61,11 +63,4 @@ title: io.gitlab.arturbosch.detekt.api - detekt-api
### Properties
| [DEFAULT_FLOAT_CONVERSION_FACTOR](-d-e-f-a-u-l-t_-f-l-o-a-t_-c-o-n-v-e-r-s-i-o-n_-f-a-c-t-o-r.html) | `const val DEFAULT_FLOAT_CONVERSION_FACTOR: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)<br>To represent a value of 0.5, use the metric value 50 and the conversion factor of 100. (50 / 100 = 0.5) |
| [psiFactory](psi-factory.html) | `val psiFactory: KtPsiFactory`<br>Allows to generate different kinds of KtElement's. |
| [psiProject](psi-project.html) | `val psiProject: Project`<br>The initialized kotlin environment which is used to translate kotlin code to a Kotlin-AST. |
### Functions
| [createCompilerConfiguration](create-compiler-configuration.html) | `fun createCompilerConfiguration(classpath: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>, pathsToAnalyze: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Path`](https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html)`>): CompilerConfiguration` |
| [createKotlinCoreEnvironment](create-kotlin-core-environment.html) | `fun createKotlinCoreEnvironment(configuration: CompilerConfiguration = CompilerConfiguration()): KotlinCoreEnvironment` |