# Detekt configuration for exo-desktop. # Strict: treat issues as errors, not warnings. build: maxIssues: 0 complexity: LongMethod: threshold: 60 LongParameterList: functionThreshold: 8 constructorThreshold: 10 ComplexCondition: threshold: 5 TooManyFunctions: thresholdInFiles: 25 thresholdInClasses: 20 thresholdInInterfaces: 15 naming: FunctionNaming: # Compose uses PascalCase for @Composable functions. # Tests use backtick names. excludes: ['**/ui/**', '**/test/**'] MatchingDeclarationName: active: false TopLevelPropertyNaming: constantPattern: '[A-Z][A-Za-z0-9_]*' style: MagicNumber: ignoreNumbers: - '-1' - '0' - '1' - '2' - '5' - '100' - '9090' ignorePropertyDeclaration: true ignoreCompanionObjectPropertyDeclaration: true ignoreAnnotation: true ignoreEnums: true MaxLineLength: maxLineLength: 120 excludeCommentStatements: true WildcardImport: active: true excludeImports: - 'kotlinx.coroutines.*' ReturnCount: max: 4 UnusedPrivateMember: allowedNames: '(_|ignored|expected)' exceptions: TooGenericExceptionCaught: active: true exceptionNames: - 'Exception' - 'RuntimeException' - 'Throwable'