detekt.yml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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. autoCorrect: true
  176. SleepInsteadOfDelay:
  177. active: true
  178. SuspendFunWithCoroutineScopeReceiver:
  179. active: true
  180. SuspendFunWithFlowReturnType:
  181. active: true
  182. empty-blocks:
  183. active: true
  184. EmptyCatchBlock:
  185. active: true
  186. allowedExceptionNameRegex: '_|(ignore|expected).*'
  187. EmptyClassBlock:
  188. active: true
  189. EmptyDefaultConstructor:
  190. active: true
  191. EmptyDoWhileBlock:
  192. active: true
  193. EmptyElseBlock:
  194. active: true
  195. EmptyFinallyBlock:
  196. active: true
  197. EmptyForBlock:
  198. active: true
  199. EmptyFunctionBlock:
  200. active: true
  201. # ignoreOverridden: false
  202. EmptyIfBlock:
  203. active: true
  204. EmptyInitBlock:
  205. active: true
  206. EmptyKtFile:
  207. active: true
  208. EmptySecondaryConstructor:
  209. active: true
  210. EmptyTryBlock:
  211. active: true
  212. EmptyWhenBlock:
  213. active: true
  214. EmptyWhileBlock:
  215. active: true
  216. exceptions:
  217. active: true
  218. ExceptionRaisedInUnexpectedLocation:
  219. active: true
  220. methodNames:
  221. - 'equals'
  222. - 'finalize'
  223. - 'hashCode'
  224. - 'toString'
  225. InstanceOfCheckForException:
  226. active: true
  227. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  228. NotImplementedDeclaration:
  229. active: true
  230. ObjectExtendsThrowable:
  231. active: true
  232. PrintStackTrace:
  233. active: true
  234. RethrowCaughtException:
  235. active: true
  236. ReturnFromFinally:
  237. active: true
  238. ignoreLabeled: false
  239. SwallowedException:
  240. active: true
  241. ignoredExceptionTypes:
  242. - 'InterruptedException'
  243. - 'MalformedURLException'
  244. - 'NumberFormatException'
  245. - 'ParseException'
  246. allowedExceptionNameRegex: '_|(ignore|expected).*'
  247. excludes: [ '**/test/**', '**/androidTest/**']
  248. ThrowingExceptionFromFinally:
  249. active: true
  250. ThrowingExceptionInMain:
  251. active: true
  252. ThrowingExceptionsWithoutMessageOrCause:
  253. active: true
  254. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  255. exceptions:
  256. - 'ArrayIndexOutOfBoundsException'
  257. - 'Exception'
  258. - 'IllegalArgumentException'
  259. - 'IllegalMonitorStateException'
  260. - 'IllegalStateException'
  261. - 'IndexOutOfBoundsException'
  262. - 'NullPointerException'
  263. - 'RuntimeException'
  264. - 'Throwable'
  265. ThrowingNewInstanceOfSameException:
  266. active: true
  267. TooGenericExceptionCaught:
  268. active: true
  269. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  270. exceptionNames:
  271. - 'ArrayIndexOutOfBoundsException'
  272. - 'Error'
  273. - 'Exception'
  274. - 'IllegalMonitorStateException'
  275. - 'IndexOutOfBoundsException'
  276. - 'NullPointerException'
  277. - 'RuntimeException'
  278. - 'Throwable'
  279. allowedExceptionNameRegex: '_|(ignore|expected).*'
  280. TooGenericExceptionThrown:
  281. active: true
  282. exceptionNames:
  283. - 'Error'
  284. - 'Exception'
  285. - 'RuntimeException'
  286. - 'Throwable'
  287. naming:
  288. active: true
  289. BooleanPropertyNaming:
  290. active: true
  291. allowedPattern: '^(is|has|are)'
  292. # ignoreOverridden: true
  293. ClassNaming:
  294. active: true
  295. classPattern: '[A-Z][a-zA-Z0-9]*'
  296. ConstructorParameterNaming:
  297. active: true
  298. parameterPattern: '[a-z][A-Za-z0-9]*'
  299. privateParameterPattern: '[a-z][A-Za-z0-9]*'
  300. excludeClassPattern: '$^'
  301. # ignoreOverridden: true
  302. EnumNaming:
  303. active: true
  304. enumEntryPattern: '[A-Z][_a-zA-Z0-9]*'
  305. ForbiddenClassName:
  306. active: true
  307. forbiddenName: []
  308. FunctionMaxLength:
  309. active: true
  310. maximumFunctionNameLength: 50
  311. excludes: [ '**/test/**', '**/androidTest/**']
  312. FunctionMinLength:
  313. active: true
  314. minimumFunctionNameLength: 1
  315. FunctionNaming:
  316. active: true
  317. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  318. functionPattern: '[a-zA-Z][a-zA-Z0-9]*' # Non-default for Jetpack Compose
  319. excludeClassPattern: '$^'
  320. # ignoreOverridden: true
  321. FunctionParameterNaming:
  322. active: true
  323. parameterPattern: '[a-z][A-Za-z0-9]*'
  324. excludeClassPattern: '$^'
  325. # ignoreOverridden: true
  326. InvalidPackageDeclaration:
  327. active: true
  328. rootPackage: ''
  329. requireRootInDeclaration: false
  330. LambdaParameterNaming:
  331. active: true
  332. parameterPattern: '[a-z][A-Za-z0-9]*|_'
  333. MatchingDeclarationName:
  334. active: true
  335. mustBeFirst: true
  336. MemberNameEqualsClassName:
  337. active: true
  338. # ignoreOverridden: true
  339. NoNameShadowing:
  340. active: true
  341. NonBooleanPropertyPrefixedWithIs:
  342. active: true
  343. ObjectPropertyNaming:
  344. active: true
  345. constantPattern: '[A-Za-z][_A-Za-z0-9]*'
  346. propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
  347. privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
  348. PackageNaming:
  349. active: true
  350. packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*'
  351. TopLevelPropertyNaming:
  352. active: true
  353. constantPattern: '[A-Z][_A-Z0-9]*'
  354. propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
  355. privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
  356. VariableMaxLength:
  357. active: true
  358. maximumVariableNameLength: 64
  359. VariableMinLength:
  360. active: true
  361. minimumVariableNameLength: 1
  362. VariableNaming:
  363. active: true
  364. variablePattern: '[a-z][A-Za-z0-9]*'
  365. privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
  366. excludeClassPattern: '$^'
  367. # ignoreOverridden: true
  368. performance:
  369. active: true
  370. ArrayPrimitive:
  371. active: true
  372. CouldBeSequence:
  373. active: true
  374. autoCorrect: true
  375. threshold: 3
  376. ForEachOnRange:
  377. active: true
  378. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  379. SpreadOperator:
  380. active: true
  381. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  382. UnnecessaryTemporaryInstantiation:
  383. active: true
  384. potential-bugs:
  385. active: true
  386. AvoidReferentialEquality:
  387. active: true
  388. forbiddenTypePatterns:
  389. - 'kotlin.String'
  390. CastToNullableType:
  391. active: true
  392. Deprecation:
  393. active: true
  394. DontDowncastCollectionTypes:
  395. active: true
  396. DoubleMutabilityForCollection:
  397. active: true
  398. mutableTypes:
  399. - 'kotlin.collections.MutableList'
  400. - 'kotlin.collections.MutableMap'
  401. - 'kotlin.collections.MutableSet'
  402. - 'java.util.ArrayList'
  403. - 'java.util.LinkedHashSet'
  404. - 'java.util.HashSet'
  405. - 'java.util.LinkedHashMap'
  406. - 'java.util.HashMap'
  407. # DuplicateCaseInWhenExpression:
  408. # active: true
  409. ElseCaseInsteadOfExhaustiveWhen:
  410. active: true
  411. EqualsAlwaysReturnsTrueOrFalse:
  412. active: true
  413. EqualsWithHashCodeExist:
  414. active: true
  415. ExitOutsideMain:
  416. active: true
  417. ExplicitGarbageCollectionCall:
  418. active: true
  419. HasPlatformType:
  420. active: true
  421. IgnoredReturnValue:
  422. active: true
  423. # restrictToAnnotatedMethods: true
  424. restrictToConfig: true
  425. returnValueAnnotations:
  426. - '*.CheckResult'
  427. - '*.CheckReturnValue'
  428. ignoreReturnValueAnnotations:
  429. - '*.CanIgnoreReturnValue'
  430. ignoreFunctionCall: []
  431. ImplicitDefaultLocale:
  432. active: true
  433. ImplicitUnitReturnType:
  434. active: true
  435. allowExplicitReturnType: true
  436. InvalidRange:
  437. active: true
  438. IteratorHasNextCallsNextMethod:
  439. active: true
  440. IteratorNotThrowingNoSuchElementException:
  441. active: true
  442. LateinitUsage:
  443. active: false # Disabled for Dagger
  444. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  445. ignoreOnClassesPattern: ''
  446. MapGetWithNotNullAssertionOperator:
  447. active: true
  448. MissingPackageDeclaration:
  449. active: true
  450. excludes: ['**/*.kts']
  451. # MissingWhenCase:
  452. # active: true
  453. # allowElseExpression: true
  454. NullCheckOnMutableProperty:
  455. active: true
  456. NullableToStringCall:
  457. active: true
  458. # RedundantElseInWhen:
  459. # active: true
  460. UnconditionalJumpStatementInLoop:
  461. active: true
  462. UnnecessaryNotNullOperator:
  463. active: true
  464. UnnecessarySafeCall:
  465. active: true
  466. UnreachableCatchBlock:
  467. active: true
  468. UnreachableCode:
  469. active: true
  470. UnsafeCallOnNullableType:
  471. active: true
  472. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  473. UnsafeCast:
  474. active: true
  475. UnusedUnaryOperator:
  476. active: true
  477. UselessPostfixExpression:
  478. active: true
  479. WrongEqualsTypeParameter:
  480. active: true
  481. style:
  482. active: true
  483. CanBeNonNullable:
  484. active: true
  485. autoCorrect: true
  486. CascadingCallWrapping:
  487. active: true
  488. includeElvis: true
  489. ClassOrdering:
  490. active: true
  491. CollapsibleIfStatements:
  492. active: true
  493. DataClassContainsFunctions:
  494. active: true
  495. conversionFunctionPrefix:
  496. - 'to'
  497. DataClassShouldBeImmutable:
  498. active: true
  499. autoCorrect: true
  500. DestructuringDeclarationWithTooManyEntries:
  501. active: true
  502. maxDestructuringEntries: 3
  503. EqualsNullCall:
  504. active: true
  505. EqualsOnSignatureLine:
  506. active: true
  507. ExplicitCollectionElementAccessMethod:
  508. active: true
  509. ExplicitItLambdaParameter:
  510. active: true
  511. ExpressionBodySyntax:
  512. active: false # Disabled because I personally feel explicitness and braces helps readability
  513. includeLineWrapping: false
  514. ForbiddenComment:
  515. active: true
  516. # values:
  517. # - 'FIXME:'
  518. # - 'STOPSHIP:'
  519. # - 'TODO:'
  520. allowedPatterns: ''
  521. # customMessage: ''
  522. ForbiddenImport:
  523. active: true
  524. imports: []
  525. forbiddenPatterns: ''
  526. ForbiddenMethodCall:
  527. active: true
  528. methods:
  529. - 'kotlin.io.print'
  530. - 'kotlin.io.println'
  531. # ForbiddenPublicDataClass:
  532. # active: true
  533. # excludes: ['**']
  534. # ignorePackages:
  535. # - '*.internal'
  536. # - '*.internal.*'
  537. ForbiddenSuppress:
  538. active: true
  539. rules: []
  540. ForbiddenVoid:
  541. active: true
  542. # ignoreOverridden: false
  543. ignoreUsageInGenerics: false
  544. FunctionOnlyReturningConstant:
  545. active: true
  546. ignoreOverridableFunction: true
  547. ignoreActualFunction: true
  548. excludedFunctions:
  549. - ''
  550. # LibraryCodeMustSpecifyReturnType:
  551. # active: true
  552. # autoCorrect: true
  553. # excludes: ['**']
  554. # LibraryEntitiesShouldNotBePublic:
  555. # active: true
  556. # autoCorrect: true
  557. # excludes: ['**']
  558. LoopWithTooManyJumpStatements:
  559. active: true
  560. maxJumpCount: 1
  561. MagicNumber:
  562. active: true
  563. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**', '**/*.kts']
  564. ignoreNumbers:
  565. - '-1'
  566. - '0'
  567. - '1'
  568. - '2'
  569. ignoreHashCodeFunction: true
  570. ignorePropertyDeclaration: false
  571. ignoreLocalVariableDeclaration: false
  572. ignoreConstantDeclaration: true
  573. ignoreCompanionObjectPropertyDeclaration: true
  574. ignoreAnnotation: false
  575. ignoreNamedArgument: true
  576. ignoreEnums: false
  577. ignoreRanges: false
  578. ignoreExtensionFunctions: true
  579. # MandatoryBracesIfStatements:
  580. # active: true
  581. # autoCorrect: true
  582. MandatoryBracesLoops:
  583. active: true
  584. MaxChainedCallsOnSameLine:
  585. active: true
  586. maxChainedCalls: 5
  587. MaxLineLength:
  588. active: true
  589. maxLineLength: 120
  590. excludePackageStatements: true
  591. excludeImportStatements: true
  592. excludeCommentStatements: false
  593. MayBeConst:
  594. active: true
  595. autoCorrect: true
  596. ModifierOrder:
  597. active: true
  598. MultilineLambdaItParameter:
  599. active: true
  600. NestedClassesVisibility:
  601. active: true
  602. NewLineAtEndOfFile:
  603. active: true
  604. autoCorrect: true
  605. NoTabs:
  606. active: true
  607. autoCorrect: true
  608. NullableBooleanCheck:
  609. active: true
  610. ObjectLiteralToLambda:
  611. active: true
  612. OptionalAbstractKeyword:
  613. active: true
  614. OptionalUnit:
  615. active: true
  616. # OptionalWhenBraces:
  617. # active: false # Disabled because I personally feel braces helps readability
  618. PreferToOverPairSyntax:
  619. active: true
  620. ProtectedMemberInFinalClass:
  621. active: true
  622. RedundantExplicitType:
  623. active: true
  624. RedundantHigherOrderMapUsage:
  625. active: true
  626. RedundantVisibilityModifierRule:
  627. active: true
  628. autoCorrect: true
  629. ReturnCount:
  630. active: true
  631. max: 3
  632. excludedFunctions:
  633. - 'equals'
  634. excludeLabeled: false
  635. excludeReturnFromLambda: true
  636. excludeGuardClauses: false
  637. SafeCast:
  638. active: true
  639. SerialVersionUIDInSerializableClass:
  640. active: true
  641. SpacingBetweenPackageAndImports:
  642. active: true
  643. ThrowsCount:
  644. active: true
  645. max: 2
  646. excludeGuardClauses: false
  647. TrailingWhitespace:
  648. active: true
  649. UnderscoresInNumericLiterals:
  650. active: true
  651. acceptableLength: 4
  652. allowNonStandardGrouping: false
  653. UnnecessaryAbstractClass:
  654. active: true
  655. UnnecessaryAnnotationUseSiteTarget:
  656. active: true
  657. UnnecessaryApply:
  658. active: true
  659. UnnecessaryBackticks:
  660. active: true
  661. UnnecessaryFilter:
  662. active: true
  663. UnnecessaryInheritance:
  664. active: true
  665. UnnecessaryInnerClass:
  666. active: true
  667. UnnecessaryLet:
  668. active: true
  669. UnnecessaryParentheses:
  670. active: true
  671. autoCorrect: true
  672. UntilInsteadOfRangeTo:
  673. active: true
  674. UnusedImports:
  675. active: true
  676. autoCorrect: true
  677. UnusedPrivateClass:
  678. active: true
  679. UnusedPrivateMember:
  680. active: true
  681. allowedNames: '(_|ignored|expected|serialVersionUID)'
  682. UseAnyOrNoneInsteadOfFind:
  683. active: true
  684. UseArrayLiteralsInAnnotations:
  685. active: true
  686. UseCheckNotNull:
  687. active: true
  688. UseCheckOrError:
  689. active: true
  690. UseDataClass:
  691. active: true
  692. allowVars: false
  693. UseEmptyCounterpart:
  694. active: true
  695. UseIfEmptyOrIfBlank:
  696. active: true
  697. UseIfInsteadOfWhen:
  698. active: true
  699. autoCorrect: true
  700. UseIsNullOrEmpty:
  701. active: true
  702. autoCorrect: true
  703. UseOrEmpty:
  704. active: true
  705. autoCorrect: true
  706. UseRequire:
  707. active: true
  708. UseRequireNotNull:
  709. active: true
  710. UselessCallOnNotNull:
  711. active: true
  712. UtilityClassWithPublicConstructor:
  713. active: true
  714. VarCouldBeVal:
  715. active: true
  716. autoCorrect: true
  717. ignoreLateinitVar: true
  718. WildcardImport:
  719. active: true
  720. autoCorrect: true
  721. excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
  722. excludeImports:
  723. - 'java.util.*'