defaultRules static method

List<AuditRule> defaultRules()

All rules registered in this build of the tool.

Grouped by category. Add a new rule by importing it and appending to the appropriate section — nothing else needs to change.

Implementation

static List<AuditRule> defaultRules() => [
  // performance
  MissingConstRule(),
  AvoidForEachRule(),
  PreferListViewBuilderRule(),
  // memory
  DisposeControllersRule(),
  CancelSubscriptionsRule(),
  CloseSinksRule(),
  // security
  HardcodedSecretRule(),
  InsecureHttpRule(),
  UnsafeStorageRule(),
  // api
  PrintInProductionRule(),
  MissingTryCatchRule(),
  HardcodedUrlRule(),
  // architecture
  HugeBuildMethodRule(),
  DeepWidgetNestingRule(),
  BusinessLogicInWidgetRule(),
  // ui
  MissingKeyInListRule(),
  AvoidInlineTextStyleRule(),
  HardcodedSizeRule(),
  // quality
  EmptyCatchRule(),
  TodoCommentRule(),
  LongMethodRule(),
];