Showing 254 of 254 total issues
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return False # too bonded already!
Avoid too many return
statements within this function. Open
Open
return False # if the warhead is not connected pretend it is not a warhead.
Avoid too many return
statements within this function. Open
Open
return MinizationOutcome(success=success,
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return {name: flip_mapping(submapping) for name, submapping in mapping.items()}
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return cls.from_hit_codes(hit_codes=row.fragments.split(','),
Avoid too many return
statements within this function. Open
Open
return 'too moved'
Avoid too many return
statements within this function. Open
Open
return 100 - int(single_origin[sorted_names[0]] / sum(single_origin.values()) * 100)
Avoid too many return
statements within this function. Open
Open
return trial == 1 or atom.GetProp('provenance') == 'common'
Avoid too many return
statements within this function. Open
Open
return 'equally sized'
Avoid too many return
statements within this function. Open
Open
return 'too contorted'
Avoid too many return
statements within this function. Open
Open
return None
Avoid too many return
statements within this function. Open
Open
return 'acceptable'
Function inventorize_warheads
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def inventorize_warheads(cls, hits: List[Chem.Mol], covalent_form: bool = True) -> List[str]:
"""
Get the warhead types of the list of hits
:param hits:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _parse_key_residues
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def _parse_key_residues(self,
key_residues: Union[None, Sequence[Union[int, str, Tuple[int, str]]],
pyrosetta.Vector1]):
"""
Parse a list of residues into a list of pose residue indices that will be filling ``self.key_residues``.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"