Skip to main content

Number of External Imports

The number of external imports in a file. External import is a package: import. Multiple imports from the same external package count as one external import.

A recommended NOEI is 5 or less.

Config example​

dart_code_metrics:
...
metrics:
...
number-of-external-imports: 5
...