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_DECLARE_RETURN_TYPES

      Code style
      High

      Method should have return type

      AVOID_PRINT

      Code style
      High

      Avoid `print` calls in production code.

      ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE

      Code style
      High

      Illegal assignment to non-assignable expression.

      MISSING_ASSIGNABLE_SELECTOR

      Code style
      High

      Missing selector

      MISSING_REQUIRED_ARGUMENT

      Code style
      High

      Missing required argument

      NO_DEFAULT_SUPER_CONSTRUCTOR

      Code style
      High

      No default super constructor

      PREFER_CONST_DECLARATIONS

      Code style
      High

      Prefer const over final for declarations

      PREFER_FINAL_LOCALS

      Code style
      High

      Prefer final for variable declarations if they are not reassigned.

      REDIRECT_TO_NON_CLASS

      Code style
      High

      Name isn't a type and can't be used in a redirected constructor.

      SORT_CHILD_PROPERTIES_LAST

      Code style
      High

      Sort child properties last in widget instance creations.

      TYPE_ANNOTATE_PUBLIC_APIS

      Code style
      High

      Type annotate public APIs.

      TYPE_ARGUMENT_NOT_MATCHING_BOUNDS

      Code style
      High

      Type arguments do not match bounds

      UNDEFINED_OPERATOR

      Code style
      High

      Undefined operator

      UNNECESSARY_THIS

      Code style
      High

      Unecessary this

      UNSUPPORTED_OPERATOR

      Code style
      High

      The '===' operator is not supported

      USE_OF_VOID_RESULT

      Code style
      High

      Use of void results