Query module UnstableCyclicImport
- Unstable cyclic import
- If the top-level of a module accesses a variable from a cyclic import, its value depends on which module is globally imported first.
This is the main alert definition.
Gets an import in
Gets the first candidate access to a variable imported by the given import declaration.
Holds if the given import is only used to import type names, hence has no runtime effect.
Holds if the contents of the given container are executed as part of the top-level code, and it is unreachable after top-level execution.
Holds if the length of the shortest sequence of runtime imports from
Builds a string visualizing the shortest import path from
Gets the name of the module containing the given import.
A variable access that is executed as part of the top-level and is not part of an export.