facebook pixelCodiga Analysis Dart Rules, severity error , category best practice
BACK TO LIST

Dart rules

Codiga provides multiple sets 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
Error

Avoid relative imports.

Learn more

AVOID_DYNAMIC_CALLS

Best practice
Error

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

CONST_EVAL_THROWS_EXCEPTION

Best practice
Error

Eval throws exception.

USE_KEY_IN_WIDGET_CONSTRUCTORS

Best practice
Error

Use key in widget constructors.