COR040 use-all
warning enabled by defaultA use statement imports everything (no only: list).
Why
Without only: every public entity of the module enters the scope: names collide or shadow local ones silently, and a reader cannot tell where a name comes from. only: makes the dependency explicit and keeps scopes small.
Reported
fortran
use penfPreferred
fortran
use penf, only: R8P, I4PSuppressing
For one occurrence, with the reason on the same line (or alone on the line before the statement):
fortran
! fobis: ignore[COR040] <why this occurrence is fine>For the whole project, ignore = COR040 in the fobos [lint] section.
References
Sections of the shipped knowledge packs behind this rule:
hpc-practice:fortran-practice#module-visibility(fobis kb show hpc-practice:fortran-practice#module-visibility)
Equivalent
Fortitude rule C121 (see Lint Rules).