detekt.yml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. build:
  2. maxIssues: 0
  3. excludeCorrectable: false
  4. weights:
  5. # complexity: 2
  6. # LongParameterList: 1
  7. # style: 1
  8. # comments: 1
  9. config:
  10. validation: true
  11. warningsAsErrors: false
  12. # when writing own rules with new properties, exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
  13. excludes: ''
  14. processors:
  15. active: true
  16. exclude:
  17. - 'DetektProgressListener'
  18. # - 'KtFileCountProcessor'
  19. # - 'PackageCountProcessor'
  20. # - 'ClassCountProcessor'
  21. # - 'FunctionCountProcessor'
  22. # - 'PropertyCountProcessor'
  23. # - 'ProjectComplexityProcessor'
  24. # - 'ProjectCognitiveComplexityProcessor'
  25. # - 'ProjectLLOCProcessor'
  26. # - 'ProjectCLOCProcessor'
  27. # - 'ProjectLOCProcessor'
  28. # - 'ProjectSLOCProcessor'
  29. # - 'LicenseHeaderLoaderExtension'
  30. console-reports:
  31. active: true
  32. exclude:
  33. - 'ProjectStatisticsReport'
  34. - 'ComplexityReport'
  35. - 'NotificationReport'
  36. - 'FindingsReport'
  37. - 'FileBasedFindingsReport'
  38. # - 'LiteFindingsReport'
  39. output-reports:
  40. active: true
  41. exclude:
  42. # - 'TxtOutputReport'
  43. # - 'XmlOutputReport'
  44. # - 'HtmlOutputReport'
  45. # - 'MdOutputReport'
  46. comments:
  47. active: true
  48. AbsentOrWrongFileLicense:
  49. active: false
  50. licenseTemplateFile: 'license.template'
  51. licenseTemplateIsRegex: false
  52. CommentOverPrivateFunction:
  53. active: true
  54. CommentOverPrivateProperty:
  55. active: true
  56. DeprecatedBlockTag:
  57. active: true
  58. EndOfSentenceFormat:
  59. active: true
  60. endOfSentenceFormat: '([.?!][ \t\n\r\f<])|([.?!:]$)'
  61. KDocReferencesNonPublicProperty:
  62. active: true
  63. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  64. OutdatedDocumentation:
  65. active: true
  66. matchTypeParameters: true
  67. matchDeclarationsOrder: true
  68. allowParamOnConstructorProperties: false
  69. UndocumentedPublicClass:
  70. active: true
  71. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  72. searchInNestedClass: true
  73. searchInInnerClass: true
  74. searchInInnerObject: true
  75. searchInInnerInterface: true
  76. UndocumentedPublicFunction:
  77. active: true
  78. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  79. UndocumentedPublicProperty:
  80. active: true
  81. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  82. complexity:
  83. active: true
  84. ComplexCondition:
  85. active: true
  86. threshold: 4
  87. ComplexInterface:
  88. active: true
  89. threshold: 20
  90. includeStaticDeclarations: false
  91. includePrivateDeclarations: false
  92. ComplexMethod:
  93. active: true
  94. threshold: 30
  95. ignoreSingleWhenExpression: false
  96. ignoreSimpleWhenEntries: false
  97. ignoreNestingFunctions: false
  98. nestingFunctions:
  99. - 'also'
  100. - 'apply'
  101. - 'forEach'
  102. - 'isNotNull'
  103. - 'ifNull'
  104. - 'let'
  105. - 'run'
  106. - 'use'
  107. - 'with'
  108. LabeledExpression:
  109. active: true
  110. ignoredLabels: []
  111. LargeClass:
  112. active: true
  113. threshold: 600
  114. LongMethod:
  115. active: true
  116. threshold: 250
  117. LongParameterList:
  118. active: true
  119. functionThreshold: 10
  120. constructorThreshold: 15
  121. ignoreDefaultParameters: false
  122. ignoreDataClasses: true
  123. ignoreAnnotatedParameter: []
  124. MethodOverloading:
  125. active: true
  126. threshold: 6
  127. NamedArguments:
  128. active: true
  129. threshold: 3
  130. ignoreArgumentsMatchingNames: false
  131. NestedBlockDepth:
  132. active: true
  133. threshold: 4
  134. NestedScopeFunctions:
  135. active: true
  136. threshold: 1
  137. functions:
  138. - 'kotlin.apply'
  139. - 'kotlin.run'
  140. - 'kotlin.with'
  141. - 'kotlin.let'
  142. - 'kotlin.also'
  143. ReplaceSafeCallChainWithRun:
  144. active: true
  145. StringLiteralDuplication:
  146. active: true
  147. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  148. threshold: 3
  149. ignoreAnnotation: true
  150. excludeStringsWithLessThan5Characters: true
  151. ignoreStringsRegex: '$^'
  152. TooManyFunctions:
  153. active: true
  154. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  155. thresholdInFiles: 35
  156. thresholdInClasses: 35
  157. thresholdInInterfaces: 35
  158. thresholdInObjects: 35
  159. thresholdInEnums: 35
  160. ignoreDeprecated: false
  161. ignorePrivate: false
  162. ignoreOverridden: false
  163. coroutines:
  164. active: true
  165. GlobalCoroutineUsage:
  166. active: true
  167. InjectDispatcher:
  168. active: true
  169. dispatcherNames:
  170. - 'IO'
  171. - 'Default'
  172. - 'Unconfined'
  173. RedundantSuspendModifier:
  174. active: true
  175. SleepInsteadOfDelay:
  176. active: true
  177. SuspendFunWithCoroutineScopeReceiver:
  178. active: true
  179. SuspendFunWithFlowReturnType:
  180. active: true
  181. empty-blocks:
  182. active: true
  183. EmptyCatchBlock:
  184. active: true
  185. allowedExceptionNameRegex: '_|(ignore|expected).*'
  186. EmptyClassBlock:
  187. active: true
  188. EmptyDefaultConstructor:
  189. active: true
  190. EmptyDoWhileBlock:
  191. active: true
  192. EmptyElseBlock:
  193. active: true
  194. EmptyFinallyBlock:
  195. active: true
  196. EmptyForBlock:
  197. active: true
  198. EmptyFunctionBlock:
  199. active: true
  200. ignoreOverridden: false
  201. EmptyIfBlock:
  202. active: true
  203. EmptyInitBlock:
  204. active: true
  205. EmptyKtFile:
  206. active: true
  207. EmptySecondaryConstructor:
  208. active: true
  209. EmptyTryBlock:
  210. active: true
  211. EmptyWhenBlock:
  212. active: true
  213. EmptyWhileBlock:
  214. active: true
  215. exceptions:
  216. active: true
  217. ExceptionRaisedInUnexpectedLocation:
  218. active: true
  219. methodNames:
  220. - 'equals'
  221. - 'finalize'
  222. - 'hashCode'
  223. - 'toString'
  224. InstanceOfCheckForException:
  225. active: true
  226. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  227. NotImplementedDeclaration:
  228. active: true
  229. ObjectExtendsThrowable:
  230. active: true
  231. PrintStackTrace:
  232. active: true
  233. RethrowCaughtException:
  234. active: true
  235. ReturnFromFinally:
  236. active: true
  237. ignoreLabeled: false
  238. SwallowedException:
  239. active: true
  240. ignoredExceptionTypes:
  241. - 'InterruptedException'
  242. - 'MalformedURLException'
  243. - 'NumberFormatException'
  244. - 'ParseException'
  245. allowedExceptionNameRegex: '_|(ignore|expected).*'
  246. excludes: [ '**/test/**', '**/androidTest/**']
  247. ThrowingExceptionFromFinally:
  248. active: true
  249. ThrowingExceptionInMain:
  250. active: true
  251. ThrowingExceptionsWithoutMessageOrCause:
  252. active: true
  253. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  254. exceptions:
  255. - 'ArrayIndexOutOfBoundsException'
  256. - 'Exception'
  257. - 'IllegalArgumentException'
  258. - 'IllegalMonitorStateException'
  259. - 'IllegalStateException'
  260. - 'IndexOutOfBoundsException'
  261. - 'NullPointerException'
  262. - 'RuntimeException'
  263. - 'Throwable'
  264. ThrowingNewInstanceOfSameException:
  265. active: true
  266. TooGenericExceptionCaught:
  267. active: true
  268. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  269. exceptionNames:
  270. - 'ArrayIndexOutOfBoundsException'
  271. - 'Error'
  272. - 'Exception'
  273. - 'IllegalMonitorStateException'
  274. - 'IndexOutOfBoundsException'
  275. - 'NullPointerException'
  276. - 'RuntimeException'
  277. - 'Throwable'
  278. allowedExceptionNameRegex: '_|(ignore|expected).*'
  279. TooGenericExceptionThrown:
  280. active: true
  281. exceptionNames:
  282. - 'Error'
  283. - 'Exception'
  284. - 'RuntimeException'
  285. - 'Throwable'
  286. naming:
  287. active: true
  288. BooleanPropertyNaming:
  289. active: true
  290. allowedPattern: '^(is|has|are)'
  291. ignoreOverridden: true
  292. ClassNaming:
  293. active: true
  294. classPattern: '[A-Z][a-zA-Z0-9]*'
  295. ConstructorParameterNaming:
  296. active: true
  297. parameterPattern: '[a-z][A-Za-z0-9]*'
  298. privateParameterPattern: '[a-z][A-Za-z0-9]*'
  299. excludeClassPattern: '$^'
  300. ignoreOverridden: true
  301. EnumNaming:
  302. active: true
  303. enumEntryPattern: '[A-Z][_a-zA-Z0-9]*'
  304. ForbiddenClassName:
  305. active: true
  306. forbiddenName: []
  307. FunctionMaxLength:
  308. active: true
  309. maximumFunctionNameLength: 50
  310. excludes: [ '**/test/**', '**/androidTest/**']
  311. FunctionMinLength:
  312. active: true
  313. minimumFunctionNameLength: 1
  314. FunctionNaming:
  315. active: true
  316. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  317. functionPattern: '[a-zA-Z][a-zA-Z0-9]*' # Non-default for Jetpack Compose
  318. excludeClassPattern: '$^'
  319. ignoreOverridden: true
  320. FunctionParameterNaming:
  321. active: true
  322. parameterPattern: '[a-z][A-Za-z0-9]*'
  323. excludeClassPattern: '$^'
  324. ignoreOverridden: true
  325. InvalidPackageDeclaration:
  326. active: true
  327. rootPackage: ''
  328. requireRootInDeclaration: false
  329. LambdaParameterNaming:
  330. active: true
  331. parameterPattern: '[a-z][A-Za-z0-9]*|_'
  332. MatchingDeclarationName:
  333. active: true
  334. mustBeFirst: true
  335. MemberNameEqualsClassName:
  336. active: true
  337. ignoreOverridden: true
  338. NoNameShadowing:
  339. active: true
  340. NonBooleanPropertyPrefixedWithIs:
  341. active: true
  342. ObjectPropertyNaming:
  343. active: true
  344. constantPattern: '[A-Za-z][_A-Za-z0-9]*'
  345. propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
  346. privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
  347. PackageNaming:
  348. active: true
  349. packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*'
  350. TopLevelPropertyNaming:
  351. active: true
  352. constantPattern: '[A-Z][_A-Z0-9]*'
  353. propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
  354. privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
  355. VariableMaxLength:
  356. active: true
  357. maximumVariableNameLength: 64
  358. VariableMinLength:
  359. active: true
  360. minimumVariableNameLength: 1
  361. VariableNaming:
  362. active: true
  363. variablePattern: '[a-z][A-Za-z0-9]*'
  364. privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
  365. excludeClassPattern: '$^'
  366. ignoreOverridden: true
  367. performance:
  368. active: true
  369. ArrayPrimitive:
  370. active: true
  371. CouldBeSequence:
  372. active: true
  373. threshold: 3
  374. ForEachOnRange:
  375. active: true
  376. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  377. SpreadOperator:
  378. active: true
  379. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  380. UnnecessaryTemporaryInstantiation:
  381. active: true
  382. potential-bugs:
  383. active: true
  384. AvoidReferentialEquality:
  385. active: true
  386. forbiddenTypePatterns:
  387. - 'kotlin.String'
  388. CastToNullableType:
  389. active: true
  390. Deprecation:
  391. active: true
  392. DontDowncastCollectionTypes:
  393. active: true
  394. DoubleMutabilityForCollection:
  395. active: true
  396. mutableTypes:
  397. - 'kotlin.collections.MutableList'
  398. - 'kotlin.collections.MutableMap'
  399. - 'kotlin.collections.MutableSet'
  400. - 'java.util.ArrayList'
  401. - 'java.util.LinkedHashSet'
  402. - 'java.util.HashSet'
  403. - 'java.util.LinkedHashMap'
  404. - 'java.util.HashMap'
  405. DuplicateCaseInWhenExpression:
  406. active: true
  407. ElseCaseInsteadOfExhaustiveWhen:
  408. active: true
  409. EqualsAlwaysReturnsTrueOrFalse:
  410. active: true
  411. EqualsWithHashCodeExist:
  412. active: true
  413. ExitOutsideMain:
  414. active: true
  415. ExplicitGarbageCollectionCall:
  416. active: true
  417. HasPlatformType:
  418. active: true
  419. IgnoredReturnValue:
  420. active: true
  421. restrictToAnnotatedMethods: true
  422. returnValueAnnotations:
  423. - '*.CheckResult'
  424. - '*.CheckReturnValue'
  425. ignoreReturnValueAnnotations:
  426. - '*.CanIgnoreReturnValue'
  427. ignoreFunctionCall: []
  428. ImplicitDefaultLocale:
  429. active: true
  430. ImplicitUnitReturnType:
  431. active: true
  432. allowExplicitReturnType: true
  433. InvalidRange:
  434. active: true
  435. IteratorHasNextCallsNextMethod:
  436. active: true
  437. IteratorNotThrowingNoSuchElementException:
  438. active: true
  439. LateinitUsage:
  440. active: false # Disabled for Dagger
  441. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  442. ignoreOnClassesPattern: ''
  443. MapGetWithNotNullAssertionOperator:
  444. active: true
  445. MissingPackageDeclaration:
  446. active: true
  447. excludes: ['**/*.kts']
  448. MissingWhenCase:
  449. active: true
  450. allowElseExpression: true
  451. NullCheckOnMutableProperty:
  452. active: true
  453. NullableToStringCall:
  454. active: true
  455. RedundantElseInWhen:
  456. active: true
  457. UnconditionalJumpStatementInLoop:
  458. active: true
  459. UnnecessaryNotNullOperator:
  460. active: true
  461. UnnecessarySafeCall:
  462. active: true
  463. UnreachableCatchBlock:
  464. active: true
  465. UnreachableCode:
  466. active: true
  467. UnsafeCallOnNullableType:
  468. active: true
  469. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  470. UnsafeCast:
  471. active: true
  472. UnusedUnaryOperator:
  473. active: true
  474. UselessPostfixExpression:
  475. active: true
  476. WrongEqualsTypeParameter:
  477. active: true
  478. style:
  479. active: true
  480. CanBeNonNullable:
  481. active: true
  482. CascadingCallWrapping:
  483. active: true
  484. includeElvis: true
  485. ClassOrdering:
  486. active: true
  487. CollapsibleIfStatements:
  488. active: true
  489. DataClassContainsFunctions:
  490. active: true
  491. conversionFunctionPrefix: 'to'
  492. DataClassShouldBeImmutable:
  493. active: true
  494. DestructuringDeclarationWithTooManyEntries:
  495. active: true
  496. maxDestructuringEntries: 3
  497. EqualsNullCall:
  498. active: true
  499. EqualsOnSignatureLine:
  500. active: true
  501. ExplicitCollectionElementAccessMethod:
  502. active: true
  503. ExplicitItLambdaParameter:
  504. active: true
  505. ExpressionBodySyntax:
  506. active: false # Disabled because I personally feel explicitness and braces helps readability
  507. includeLineWrapping: false
  508. ForbiddenComment:
  509. active: true
  510. values:
  511. - 'FIXME:'
  512. - 'STOPSHIP:'
  513. - 'TODO:'
  514. allowedPatterns: ''
  515. customMessage: ''
  516. ForbiddenImport:
  517. active: true
  518. imports: []
  519. forbiddenPatterns: ''
  520. ForbiddenMethodCall:
  521. active: true
  522. methods:
  523. - 'kotlin.io.print'
  524. - 'kotlin.io.println'
  525. ForbiddenPublicDataClass:
  526. active: true
  527. excludes: ['**']
  528. ignorePackages:
  529. - '*.internal'
  530. - '*.internal.*'
  531. ForbiddenSuppress:
  532. active: true
  533. rules: []
  534. ForbiddenVoid:
  535. active: true
  536. ignoreOverridden: false
  537. ignoreUsageInGenerics: false
  538. FunctionOnlyReturningConstant:
  539. active: true
  540. ignoreOverridableFunction: true
  541. ignoreActualFunction: true
  542. excludedFunctions: ''
  543. LibraryCodeMustSpecifyReturnType:
  544. active: true
  545. excludes: ['**']
  546. LibraryEntitiesShouldNotBePublic:
  547. active: true
  548. excludes: ['**']
  549. LoopWithTooManyJumpStatements:
  550. active: true
  551. maxJumpCount: 1
  552. MagicNumber:
  553. active: true
  554. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**', '**/*.kts']
  555. ignoreNumbers:
  556. - '-1'
  557. - '0'
  558. - '1'
  559. - '2'
  560. ignoreHashCodeFunction: true
  561. ignorePropertyDeclaration: false
  562. ignoreLocalVariableDeclaration: false
  563. ignoreConstantDeclaration: true
  564. ignoreCompanionObjectPropertyDeclaration: true
  565. ignoreAnnotation: false
  566. ignoreNamedArgument: true
  567. ignoreEnums: false
  568. ignoreRanges: false
  569. ignoreExtensionFunctions: true
  570. MandatoryBracesIfStatements:
  571. active: true
  572. MandatoryBracesLoops:
  573. active: true
  574. MaxChainedCallsOnSameLine:
  575. active: true
  576. maxChainedCalls: 5
  577. MaxLineLength:
  578. active: true
  579. maxLineLength: 120
  580. excludePackageStatements: true
  581. excludeImportStatements: true
  582. excludeCommentStatements: false
  583. MayBeConst:
  584. active: true
  585. ModifierOrder:
  586. active: true
  587. MultilineLambdaItParameter:
  588. active: true
  589. NestedClassesVisibility:
  590. active: true
  591. NewLineAtEndOfFile:
  592. active: true
  593. NoTabs:
  594. active: true
  595. NullableBooleanCheck:
  596. active: true
  597. ObjectLiteralToLambda:
  598. active: true
  599. OptionalAbstractKeyword:
  600. active: true
  601. OptionalUnit:
  602. active: true
  603. OptionalWhenBraces:
  604. active: false # Disabled because I personally feel braces helps readability
  605. PreferToOverPairSyntax:
  606. active: true
  607. ProtectedMemberInFinalClass:
  608. active: true
  609. RedundantExplicitType:
  610. active: true
  611. RedundantHigherOrderMapUsage:
  612. active: true
  613. RedundantVisibilityModifierRule:
  614. active: true
  615. ReturnCount:
  616. active: true
  617. max: 3
  618. excludedFunctions: 'equals'
  619. excludeLabeled: false
  620. excludeReturnFromLambda: true
  621. excludeGuardClauses: false
  622. SafeCast:
  623. active: true
  624. SerialVersionUIDInSerializableClass:
  625. active: true
  626. SpacingBetweenPackageAndImports:
  627. active: true
  628. ThrowsCount:
  629. active: true
  630. max: 2
  631. excludeGuardClauses: false
  632. TrailingWhitespace:
  633. active: true
  634. UnderscoresInNumericLiterals:
  635. active: true
  636. acceptableLength: 4
  637. allowNonStandardGrouping: false
  638. UnnecessaryAbstractClass:
  639. active: true
  640. UnnecessaryAnnotationUseSiteTarget:
  641. active: true
  642. UnnecessaryApply:
  643. active: true
  644. UnnecessaryBackticks:
  645. active: true
  646. UnnecessaryFilter:
  647. active: true
  648. UnnecessaryInheritance:
  649. active: true
  650. UnnecessaryInnerClass:
  651. active: true
  652. UnnecessaryLet:
  653. active: true
  654. UnnecessaryParentheses:
  655. active: true
  656. UntilInsteadOfRangeTo:
  657. active: true
  658. UnusedImports:
  659. active: true
  660. UnusedPrivateClass:
  661. active: true
  662. UnusedPrivateMember:
  663. active: true
  664. allowedNames: '(_|ignored|expected|serialVersionUID)'
  665. UseAnyOrNoneInsteadOfFind:
  666. active: true
  667. UseArrayLiteralsInAnnotations:
  668. active: true
  669. UseCheckNotNull:
  670. active: true
  671. UseCheckOrError:
  672. active: true
  673. UseDataClass:
  674. active: true
  675. allowVars: false
  676. UseEmptyCounterpart:
  677. active: true
  678. UseIfEmptyOrIfBlank:
  679. active: true
  680. UseIfInsteadOfWhen:
  681. active: true
  682. UseIsNullOrEmpty:
  683. active: true
  684. UseOrEmpty:
  685. active: true
  686. UseRequire:
  687. active: true
  688. UseRequireNotNull:
  689. active: true
  690. UselessCallOnNotNull:
  691. active: true
  692. UtilityClassWithPublicConstructor:
  693. active: true
  694. VarCouldBeVal:
  695. active: true
  696. ignoreLateinitVar: false
  697. WildcardImport:
  698. active: true
  699. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  700. excludeImports:
  701. - 'java.util.*'