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.

CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH

Error prone
Warning

Type mismatch in constructor parameter

Learn more

UNNECESSARY_DEV_DEPENDENCY

Error prone
Warning

The dev dependency is unnecessary because there is also a normal dependency on that package.

DUPLICATE_DEFINITION

Error prone
Warning

Name already defined.

EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED

Error prone
Warning

Too many positional arguments.

DUPLICATE_IGNORE

Error prone
Warning

Diagnostic doesn't need to be ignored here because it's already being ignored

ASSET_DIRECTORY_DOES_NOT_EXIST

Error prone
Warning

The asset directory doesn't exist.

CONST_WITH_NON_CONST

Error prone
Warning

The constructor being called isn't a const constructor.

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.