Skip to content

Fix pre-existing CodeQL warnings

e56b2b6
Select commit
Loading
Failed to load commit list.
Open

Migrating ARC to Python 14 #867

Fix pre-existing CodeQL warnings
e56b2b6
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Apr 18, 2026 in 3s

12 new alerts including 10 errors

New alerts in code changed by this pull request

  • 10 errors
  • 1 warning
  • 1 note

See annotations below for details.

View all branch alerts.

Annotations

Check failure on line 39 in arc/species/converter.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'xyz_to_zmat' may not be defined if module
arc.species.zmat
is imported before module
arc.species.converter
, as the
definition
of xyz_to_zmat occurs after the cyclic
import
of arc.species.converter.

Check failure on line 40 in arc/species/species.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'check_xyz_dict' may not be defined if module
arc.species.converter
is imported before module
arc.species.species
, as the
definition
of check_xyz_dict occurs after the cyclic
import
of arc.species.species.

Check failure on line 41 in arc/species/species.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'check_zmat_dict' may not be defined if module
arc.species.converter
is imported before module
arc.species.species
, as the
definition
of check_zmat_dict occurs after the cyclic
import
of arc.species.species.

Check failure on line 44 in arc/species/species.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'modify_coords' may not be defined if module
arc.species.converter
is imported before module
arc.species.species
, as the
definition
of modify_coords occurs after the cyclic
import
of arc.species.species.

Check failure on line 46 in arc/species/species.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'order_atoms_in_mol_list' may not be defined if module
arc.species.converter
is imported before module
arc.species.species
, as the
definition
of order_atoms_in_mol_list occurs after the cyclic
import
of arc.species.species.

Check failure on line 57 in arc/species/species.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'calculate_angle' may not be defined if module
arc.species.vectors
is imported before module
arc.species.species
, as the
definition
of calculate_angle occurs after the cyclic
import
of arc.species.species.

Check failure on line 57 in arc/species/species.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'calculate_distance' may not be defined if module
arc.species.vectors
is imported before module
arc.species.species
, as the
definition
of calculate_distance occurs after the cyclic
import
of arc.species.species.

Check failure on line 57 in arc/species/species.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'calculate_dihedral_angle' may not be defined if module
arc.species.vectors
is imported before module
arc.species.species
, as the
definition
of calculate_dihedral_angle occurs after the cyclic
import
of arc.species.species.

Check failure on line 39 in arc/species/zmat.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'calculate_param' may not be defined if module
arc.species.vectors
is imported before module
arc.species.zmat
, as the
definition
of calculate_param occurs after the cyclic
import
of arc.species.zmat.

Check failure on line 39 in arc/species/zmat.py

See this annotation in the file changed.

Code scanning / CodeQL

Module-level cyclic import Error

'get_vector_length' may not be defined if module
arc.species.vectors
is imported before module
arc.species.zmat
, as the
definition
of get_vector_length occurs after the cyclic
import
of arc.species.zmat.

Check warning on line 38 in arc/job/adapters/obabel.py

See this annotation in the file changed.

Code scanning / CodeQL

Implicit string concatenation in a list Warning

Implicit string concatenation. Maybe missing a comma?

Check notice on line 1049 in arc/scheduler.py

See this annotation in the file changed.

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note

Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.