detekt.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. build:
  2. maxIssues: 0
  3. weights:
  4. complexity: 2
  5. LongParameterList: 2
  6. style: 1
  7. processors:
  8. active: true
  9. exclude:
  10. - "FunctionCountProcessor"
  11. - "PropertyCountProcessor"
  12. config:
  13. validation: true
  14. complexity:
  15. LongParameterList:
  16. active: true
  17. functionThreshold: 10
  18. constructorThreshold: 8
  19. ignoreDefaultParameters: true
  20. ignoreAnnotated:
  21. - "Composable"
  22. LongMethod:
  23. active: true
  24. threshold: 120
  25. ignoreAnnotated:
  26. - "Composable"
  27. - "Preview"
  28. style:
  29. MagicNumber:
  30. active: true
  31. ignoreAnnotated: ["Composable"]
  32. ignoreEnums: true
  33. ignoreNumbers: ["-1", "0", "1", "2", "42", "1000"]
  34. MaxLineLength:
  35. active: true
  36. maxLineLength: 120
  37. excludePackageStatements: true
  38. excludeImportStatements: true
  39. ReturnCount:
  40. active: true
  41. max: 4
  42. excludeGuardClauses: true
  43. excludes: ["**/test/**", "**/androidTest/**"]
  44. naming:
  45. FunctionNaming:
  46. active: true
  47. ignoreAnnotated: ["Composable", "Preview"]
  48. functionPattern: "[a-z][A-Za-z0-9]*"
  49. Compose: # io.nlopez.compose.rules
  50. ComposableParametersOrdering:
  51. active: true
  52. ModifierDefaultValue:
  53. active: true
  54. MissingModifierDefaultValue:
  55. active: true
  56. PublicComposablePreview:
  57. active: true