Import organization is consistent
Why it matters
Inconsistent import ordering is a low-stakes signal with a real cost: it generates unnecessary merge conflicts when two developers touch the same file, and it slows down code review because readers must mentally parse which dependencies are third-party versus internal. ISO 25010 maintainability.analysability degrades when every file has a different ordering convention. Projects assembled across multiple AI sessions are especially prone to this because each session may apply a different implicit convention.
Severity rationale
Low because inconsistent imports cause friction and merge conflicts but do not break functionality or introduce security risk.
Remediation
Let tooling enforce ordering automatically so no human has to think about it. Add the import/order rule to your ESLint config:
"import/order": ["warn", {
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}]
Alternatively, configure @trivago/prettier-plugin-sort-imports. Run once across the codebase to reformat all existing files, then every future file auto-conforms on save.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Code Maintainability Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- iso-25010:2011 · maintainability.analysability — Analysability
Taxons
History
- 2026-04-18·v1.0.0·Initial import from code-maintainability·automated