Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Interface which marks sub-classes as provided by detekt via the rules sub-module.

Link copied to clipboard

Path filters to explicitly include and/or exclude paths for rules.

Functions

Link copied to clipboard
fun KtElement.isSuppressedBy(id: Rule.Id, aliases: Set<String>, ruleSetId: RuleSet.Id? = null): Boolean

Checks if this psi element is suppressed by @Suppress or @SuppressWarnings annotations. If this element cannot have annotations, the first annotative parent is searched.

Link copied to clipboard

Converts given pattern into a PathMatcher specified by FileSystem.getPathMatcher. We only support the "glob:" syntax to stay os independently. Internally a globbing pattern is transformed to a regex respecting the Windows file system.

Link copied to clipboard

Returns the bundled detekt version.

Link copied to clipboard

Returns the version of the running JVM.

Link copied to clipboard

Returns the version of Kotlin that detekt was compiled with

Link copied to clipboard

Returns the name of the running OS.