facebook pixelCodiga Analysis Dart Rules, category error prone
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

NOT_ENOUGH_POSITIONAL_ARGUMENTS

Error prone
Error

Incorrect number of arguments passed to function call

UNNECESSARY_DEV_DEPENDENCY

Error prone
Warning

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

DUPLICATE_NAMED_ARGUMENT

Error prone
Error

The argument was already specified.

VARIABLE_TYPE_MISMATCH

Error prone
Critical

Type mismatch in assignment

DUPLICATE_DEFINITION

Error prone
Warning

Name already defined.

EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED

Error prone
Warning

Too many positional arguments.

INSTANCE_ACCESS_TO_STATIC_MEMBER

Error prone
Error

Static method can't be accessed through an instance.

UNRELATED_TYPE_EQUALITY_CHECKS

Error prone
Error

Equality operator `==` invocation with references of unrelated types

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.

NOT_A_TYPE

Error prone
Error

Mentioned type is not a type