Showing 270 of 903 total issues
Function _run_sync
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_sync(
Function _run_sync
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_sync(
Function _run_sync
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_sync(
Function _run_async
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_async(
Function _run_async
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_async(
Function _run_sync
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_sync(
Function cbed_frame
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def cbed_frame(
Function _run_sync
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_sync(
Function _run_async
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_async(
Function run_udf_iter
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def run_udf_iter(
Function _run_async
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_async(
Function _run_async
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_async(
Function _run_sync
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_sync(
Function _run_async
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def _run_async(
Function radial_mask_factory
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def radial_mask_factory(detector_y, detector_x, cx, cy, ri, ro, n_bins, max_order, use_sparse):
Function __init__
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def __init__(self, mask_factories, use_torch=True, use_sparse=None, mask_count=None,
Function __init__
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def __init__(
Function run_for_dataset_sync
has 9 arguments (exceeds 8 allowed). Consider refactoring. Open
Open
def run_for_dataset_sync(
Function hologram_frame
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def hologram_frame(amp, phi,
counts=1000.,
sampling=5.,
visibility=1.,
f_angle=30.,
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def get(self, block: bool = True, timeout: Optional[float] = None):
"""
Receive a message. Memory of the payload will be cleaned up after the
context manager scope, so don't keep references outside of it!
- 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"