Package-level declarations
Types
Annotated io.gitlab.arturbosch.detekt.api.Rule or io.gitlab.arturbosch.detekt.api.RuleSetProvider is active by default.
Provides alias for the annotated rule
Provides compiler resources.
Annotate the target to specify a configuration for io.gitlab.arturbosch.detekt.api.Rule or io.gitlab.arturbosch.detekt.api.RuleSetProvider.
An extension which allows users to validate parts of the configuration.
Extension point which describes how findings should be printed on the console.
Basic visitor which is used inside detekt. Guarantees a better looking name as the extended base class :).
Gather additional metrics about the analyzed kotlin file. Pay attention to the thread policy of each function!
Represents a problem detected by detekt on the source code
Specifies a position within a source code fragment.
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.
Translates detekt's result container - Detektion - into an output report which is written inside a file.
Properties holder. Allows to store and retrieve any data.
Allows to intercept detekt's result container by listening to the initial and final state and manipulate the reported issues.
Annotated Rule requires type resolution to work.
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.
A rule set provider, as the name states, is responsible for creating rule sets.
Context providing useful processing settings to initialize extensions.
Stores line and column information of a location.
Stores character start and end positions of a text file.
ValuesWithReason is essentially the same as List of ValueWithReason. Due to type erasure we cannot use the list directly. Instances of this type should always created using the valuesWithReason factory method.
A ValueWithReason represents a single configuration value that may have an explanation as to why it is used.
Functions
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. The value of the property is evaluated only once.
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. The value of the property is evaluated and transformed only once.
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. The value of the property is evaluated only once.
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. The value of the property is evaluated and transformed only once.
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. If there is no such property, the value of the supplied fallbackProperty is also considered before using the defaultValue. The value of the property is evaluated only once.
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. If there is no such property, the value of the supplied fallbackProperty is also considered before using the defaultValue. The value of the property is evaluated and transformed only once.
Convert a simple pattern String to a Regex
This factory method can be used by rule authors to specify one or many configuration values along with an explanation for each value. For example:
This factory method can be used by rule authors to specify one or many configuration values along with an explanation for each value.