Package-level declarations

Types

Link copied to clipboard
class AvoidContainerPartOnStarProjectedUnknown(config: Config) : Rule

Reports container-part targets selected from star-projected rule targets.

Link copied to clipboard
class AvoidEmptyOneOf(config: Config) : Rule

Reports oneOf calls that cannot select a value.

Link copied to clipboard
class AvoidGlobalConfigureInLocalTest(config: Config) : Rule

Reports global Fiktion.configure calls inside local test functions.

class AvoidGlobalFiktionConfigureWithoutRestore(config: Config) : Rule

Reports stored Fiktion.configure snapshots that are not restored in the same block.

Link copied to clipboard
class AvoidInvalidConfigRange(config: Config) : Rule

Reports statically invalid Fiktion config ranges.

Link copied to clipboard
class AvoidInvalidTypeFamilyFakeIndex(config: Config) : Rule

Reports fake(index) calls whose argument index is outside the requested type-family arguments.

Link copied to clipboard
class AvoidMultipleConfigsForRuleTarget(config: Config) : Rule

Reports rule targets that configure the same config key multiple times in the same scope.

Link copied to clipboard
class AvoidMultipleGeneratorsForRuleTarget(config: Config) : Rule

Reports rule targets that register multiple generators in the same scope.

Link copied to clipboard
class AvoidMultipleSeedsInFakeSpec(config: Config) : Rule

Reports repeated seed declarations in the same Fiktion spec block.

Link copied to clipboard
class AvoidNonPropertyRuleTargets(config: Config) : Rule

Reports non-property Fiktion rule targets in local fake configuration scopes.

Link copied to clipboard
class AvoidRandomInstanceInGenerator(config: Config) : Rule

Reports random instances inside generator lambdas.

Link copied to clipboard
class AvoidRecursiveFakeInGenerator(config: Config) : Rule

Reports recursive fake calls inside same-type generators.

Link copied to clipboard
class AvoidRuleDeclarationsInLoops(config: Config) : Rule

Reports Fiktion rule declarations inside loops.

Link copied to clipboard
class AvoidUnusedFiktionSnapshot(config: Config) : Rule

Reports discarded Fiktion.configure snapshots.

Link copied to clipboard
class FiktionRuleSetProvider : RuleSetProvider

Provides Fiktion-specific detekt rules.

Link copied to clipboard
class ForbiddenGeneratorCall(config: Config) : Rule

Reports configured calls inside generator lambdas.

Link copied to clipboard
class PreferContainerConfigureHelpers(config: Config) : Rule

Reports type-family container generators that can use configureCollection or configureMap.

Link copied to clipboard
class PreferContainerPartFakeHelpers(config: Config) : Rule

Reports raw type-family fake calls where a container-part helper should be used.

Link copied to clipboard
class PreferExplicitFakeSeedName(config: Config) : Rule

Reports fake calls that pass seed positionally.

Link copied to clipboard
class PreferFixedConfigValue(config: Config) : Rule

Reports fixed Fiktion config ranges that can be written as fixed values.

Link copied to clipboard
class PreferFixedDefaultProbability(config: Config) : Rule

Reports fixed default probabilities that can be written as fixed generated values.

Link copied to clipboard
class PreferFixedNullProbability(config: Config) : Rule

Reports fixed null probabilities that can be written as fixed generated values.

Link copied to clipboard
class PreferGeneratesByForMutableValues(config: Config) : Rule

Reports fixed mutable values that should be created by generator lambdas.

Link copied to clipboard
class PreferGeneratesForFixedValue(config: Config) : Rule

Reports Fiktion generators that can be written as fixed values.

Link copied to clipboard
class PreferGeneratesInForRange(config: Config) : Rule

Reports range generators that can be written with generatesIn.

Link copied to clipboard
class PreferGeneratesOneOf(config: Config) : Rule

Reports oneOf generators that can be written with generatesOneOf.

Link copied to clipboard
class PreferGroupedRuleTarget(config: Config) : Rule

Reports adjacent rules that target the same Fiktion rule target.

Link copied to clipboard
class PreferIndexedFakeInTypeFamilyLoop(config: Config) : Rule

Reports repeated type-argument fake calls in type-family loops.

Link copied to clipboard
class PreferInfixFiktionDsl(config: Config) : Rule

Reports dot-call Fiktion DSL operations that can be written as infix declarations.

Link copied to clipboard
class PreferNamedTypeFamilyFakeArgumentIndex(config: Config) : Rule

Reports type-family fake helper calls that pass argumentIndex positionally.

Link copied to clipboard
class PreferPropertyShorthand(config: Config) : Rule

Reports property(...) rule targets that can use the KProperty shorthand.

Link copied to clipboard
class PreferRuleTargetDeclarationOrder(config: Config) : Rule

Reports grouped target blocks that declare generators before configs.

Link copied to clipboard
class PreferSeedParameter(config: Config) : Rule

Reports fake calls that can pass their seed as a named call parameter.

Link copied to clipboard
class PreferThisUsingInFakeSpec(config: Config) : Rule

Reports bare using(...) calls that should use explicit receiver infix syntax.

Link copied to clipboard
class PreferTypeRuleForNonGeneric(config: Config) : Rule

Reports non-generic type-family targets that can be written as exact type targets.