Showing 237 of 237 total issues
Avoid too many return
statements within this function. Open
return _.values(iterable);
Avoid too many return
statements within this function. Open
return results;
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
if (className != toString.call(b)) return false;
Avoid too many return
statements within this function. Open
return elem.disabled === disabled;
Avoid too many return
statements within this function. Open
return data;
Avoid too many return
statements within this function. Open
if (typeof a != 'object' || typeof b != 'object') return false;
Avoid too many return
statements within this function. Open
if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;
Avoid too many return
statements within this function. Open
return result;
Avoid too many return
statements within this function. Open
if (stack[length] == a) return true;
Function parse_chembl_document
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def parse_chembl_document(self, data: List):
"""Parse ChEMBL Document records.
Args:
data: A list of ChEMBL Document records
- 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 a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def run(self, data_file: Optional[str] = None):
"""Run the transform."""
# file housekeeping
os.makedirs(self.output_dir, exist_ok=True)
- 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_annotations
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def parse_annotations(
self,
node_handle: IO,
edge_handle: IO,
data_file1: str,
- 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 extract_termite_hits
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def extract_termite_hits(self, data: Dict) -> Set:
"""Parse termite hits.
Args:
node_handle: File handle for nodes.csv.
- 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 normalize_curies
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def normalize_curies(map_path: str, entries: List) -> List:
"""
Normalize CURIEs baded on a map file.
Given a SSSOM map file defining one or more
- 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 multi_page_table_to_list
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def multi_page_table_to_list(multi_page_table: Any) -> List[Dict]:
"""
Convert multi-page tables to lists of dicts.
Method to turn table data returned from tabula.io.read_pdf(),
- 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 load_gene_info
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def load_gene_info(
self, input_dir: str, output_dir: str, species_id: Optional[List] = None
) -> None:
"""Load mappings from NCBI gene_info (gene_info.gz).
- 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"