facebook pixelDART Static Code Analysis Rules
BACK TO LIST

Dart rules

Codiga provides multiple set of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.

      ALWAYS_USE_PACKAGE_IMPORTS

      Best practice
      High

      Avoid relative imports.

      Learn more

      AVOID_DYNAMIC_CALLS

      Best practice
      High

      Avoid method calls or property accesses on a "dynamic" target

      CONST_EVAL_THROWS_EXCEPTION

      Best practice
      High

      Eval throws exception.

      USE_KEY_IN_WIDGET_CONSTRUCTORS

      Best practice
      High

      Use key in widget constructors.