Showing 151 of 151 total issues
Function run
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function _to_hits
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def _to_hits(self: AbsDf) -> Sequence[AbstractHit]:
hits = []
for row in self.itertuples():
# noinspection PyUnresolvedReferences
c = row.hit_class
- 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 calc_psi
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def calc_psi(
Function document
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def document(
Function run
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function _traverse
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def _traverse(
cls, source: TargetNode, permitting: Set[TargetEdgeReqs], results: Set[TargetNode]
) -> None:
# recursive method called from traverse
# this got really complex
- 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 run
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function calc_enrichment
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def calc_enrichment(
Function split_and_flatten_nonnulls
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def split_and_flatten_nonnulls(
cls, sep: str, skip_nulls: bool = False
) -> Callable[[Iterable[Union[str, int, float, None]]], Set[str]]:
def split_flat(things: Iterable[str]) -> Set[str]:
results = set()
- 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 resolve
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def resolve(cls, types: str) -> Set[TargetType]:
"""
Resolve a bunch of target types in a comma-separated list.
Allows for special types prefixed by an ``@``: ``@all``, ``@known``, ``@protein``, ``@molecular``,
and ``@nonmolecular``.
- 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 run
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(
Function run
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def run(