smok-serwis/coolamqp

View on GitHub
coolamqp/clustering/cluster.py

Summary

Maintainability
D
2 days
Test Coverage
B
84%

File cluster.py has 293 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# coding=UTF-8
from __future__ import print_function, absolute_import, division

import logging
import time
Severity: Minor
Found in coolamqp/clustering/cluster.py - About 3 hrs to fix

    Cyclomatic complexity is too high in method publish. (12)
    Open

        def publish(self, message,  # type: Message
                    exchange=None,  # type: tp.Union[Exchange, str, bytes]
                    routing_key=u'',  # type: tp.Union[str, bytes]
                    tx=None,  # type: tp.Optional[bool]
                    confirm=None,  # type: tp.Optional[bool]
    Severity: Minor
    Found in coolamqp/clustering/cluster.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method start. (8)
    Open

        def start(self, wait=True, timeout=10.0):  # type: (bool, float, bool) -> None
            """
            Connect to broker. Initialize Cluster.
    
            Only after this call is Cluster usable.
    Severity: Minor
    Found in coolamqp/clustering/cluster.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method __init__. (7)
    Open

        def __init__(self, nodes,  # type: tp.Union[NodeDefinition, tp.List[NodeDefinition]]
                     on_fail=None,  # type: tp.Optional[tp.Callable[[], None]]
                     extra_properties=None,
                     # type: tp.Optional[tp.List[tp.Tuple[bytes, tp.Tuple[bytes, str]]]]
                     log_frames=None,
    Severity: Minor
    Found in coolamqp/clustering/cluster.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function publish has 14 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def publish(self, message,  # type: Message
    Severity: Major
    Found in coolamqp/clustering/cluster.py - About 1 hr to fix

      Function publish has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Open

          def publish(self, message,  # type: Message
                      exchange=None,  # type: tp.Union[Exchange, str, bytes]
                      routing_key=u'',  # type: tp.Union[str, bytes]
                      tx=None,  # type: tp.Optional[bool]
                      confirm=None,  # type: tp.Optional[bool]
      Severity: Minor
      Found in coolamqp/clustering/cluster.py - About 1 hr to fix

      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 __init__ has 13 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(self, nodes,  # type: tp.Union[NodeDefinition, tp.List[NodeDefinition]]
      Severity: Major
      Found in coolamqp/clustering/cluster.py - About 1 hr to fix

        Function __init__ has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
        Open

            def __init__(self, nodes,  # type: tp.Union[NodeDefinition, tp.List[NodeDefinition]]
                         on_fail=None,  # type: tp.Optional[tp.Callable[[], None]]
                         extra_properties=None,
                         # type: tp.Optional[tp.List[tp.Tuple[bytes, tp.Tuple[bytes, str]]]]
                         log_frames=None,
        Severity: Minor
        Found in coolamqp/clustering/cluster.py - About 1 hr to fix

        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 declare has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def declare(self, obj,  # type: tp.Union[Queue, Exchange]
        Severity: Major
        Found in coolamqp/clustering/cluster.py - About 1 hr to fix

          Function consume has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def consume(self, queue, on_message=None, span=None,
          Severity: Major
          Found in coolamqp/clustering/cluster.py - About 50 mins to fix

            Function bind has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def bind(self, queue, exchange, routing_key, persistent=False, span=None,
            Severity: Minor
            Found in coolamqp/clustering/cluster.py - About 45 mins to fix

              Function start has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

                  def start(self, wait=True, timeout=10.0):  # type: (bool, float, bool) -> None
                      """
                      Connect to broker. Initialize Cluster.
              
                      Only after this call is Cluster usable.
              Severity: Minor
              Found in coolamqp/clustering/cluster.py - About 45 mins to fix

              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 drain has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  def drain(self, timeout, span=None, dont_trace=False):  # type: (float) -> Event
                      """
                      Return an Event.
              
                      :param timeout: time to wait for an event. 0 means return immediately. None means block forever
              Severity: Minor
              Found in coolamqp/clustering/cluster.py - About 35 mins to fix

              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

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                      if span is not None and not dont_trace:
                          child_span = self._make_span('bind', span)
                      else:
                          child_span = None
              Severity: Major
              Found in coolamqp/clustering/cluster.py and 2 other locations - About 55 mins to fix
              coolamqp/clustering/cluster.py on lines 131..134
              coolamqp/clustering/cluster.py on lines 192..195

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 37.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                      if span is not None and not dont_trace:
                          child_span = self._make_span('declare', span)
                      else:
                          child_span = None
              Severity: Major
              Found in coolamqp/clustering/cluster.py and 2 other locations - About 55 mins to fix
              coolamqp/clustering/cluster.py on lines 108..111
              coolamqp/clustering/cluster.py on lines 192..195

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 37.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                      if span is not None and not dont_trace:
                          child_span = self._make_span('consume', span)
                      else:
                          child_span = None
              Severity: Major
              Found in coolamqp/clustering/cluster.py and 2 other locations - About 55 mins to fix
              coolamqp/clustering/cluster.py on lines 108..111
              coolamqp/clustering/cluster.py on lines 131..134

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 37.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Line too long (92 > 80 characters)
              Open

                      called with a value of True if connection becomes blocked, and False upon an unblock
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (85 > 80 characters)
              Open

                              raise RuntimeError('tracer given, but opentracing is not installed!')
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (102 > 80 characters)
              Open

                                                                          tags.SPAN_KIND: tags.SPAN_KIND_RPC_CLIENT,
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (84 > 80 characters)
              Open

                  def drain(self, timeout, span=None, dont_trace=False):  # type: (float) -> Event
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (86 > 80 characters)
              Open

                      :param timeout: timeout to wait until the connection is ready. If it is not, a
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (91 > 80 characters)
              Open

                          # this is only going to take a short amount of time, so we're fine with polling
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (87 > 80 characters)
              Open

                                                                          tags.DATABASE_TYPE: 'amqp',
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (101 > 80 characters)
              Open

                      args and kwargs will be passed to Consumer constructor (coolamqp.attaches.consumer.Consumer).
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (81 > 80 characters)
              Open

                      con = Consumer(queue, on_message, future_to_notify=fut, span=span, *args,
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (106 > 80 characters)
              Open

                  :param on_blocked: callable to call when ConnectionBlocked/ConnectionUnblocked is received. It will be
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 80 characters)
              Open

                  def __init__(self, nodes,  # type: tp.Union[NodeDefinition, tp.List[NodeDefinition]]
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (100 > 80 characters)
              Open

                                      Note that if tx if False, and message cannot be delivered to broker at once,
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (90 > 80 characters)
              Open

                      :return: Future to be finished on completion or None, is confirm/tx was not chosen
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (82 > 80 characters)
              Open

                  :param nodes: list of nodes, or a single node. For now, only one is supported.
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (91 > 80 characters)
              Open

                      Take care not to lose the Consumer object - it's the only way to cancel a consumer!
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (104 > 80 characters)
              Open

                      :return: an Event instance. NothingMuch is returned when there's nothing within a given timoeout
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (94 > 80 characters)
              Open

                  :param log_frames: an object that supports logging each and every frame CoolAMQP sends and
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (82 > 80 characters)
              Open

                  def start(self, wait=True, timeout=10.0):  # type: (bool, float, bool) -> None
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (87 > 80 characters)
              Open

                                  '[%s] Could not connect within %s seconds' % (self.name, timeout,))
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (86 > 80 characters)
              Open

              # If any spans are spawn here, it's Cluster's job to finish them, except for publish()
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (86 > 80 characters)
              Open

                      self.on_blocked = on_blocked    # type: tp.Optional[tp.Callable[[bool], None]]
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (91 > 80 characters)
              Open

                  :param extra_properties: refer to documentation in [/coolamqp/connection/connection.py]
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (84 > 80 characters)
              Open

                                      If you choose so, you will receive a Future that can be used
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (81 > 80 characters)
              Open

                      self.events = six.moves.queue.Queue()  # for coolamqp.clustering.events.*
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (92 > 80 characters)
              Open

                                                                          tags.DATABASE_STATEMENT: 'drain'
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (88 > 80 characters)
              Open

                                                            tags.SPAN_KIND: tags.SPAN_KIND_RPC_CLIENT,
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (86 > 80 characters)
              Open

                      :param exchange: exchange to use. Default is the "direct" empty-name exchange.
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (89 > 80 characters)
              Open

                      if tx is not None:  # confirm is a drop-in replacement. tx is unfortunately named
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (84 > 80 characters)
              Open

                               # type: tp.Optional[tp.List[tp.Tuple[bytes, tp.Tuple[bytes, str]]]]
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (103 > 80 characters)
              Open

                      :param timeout: time to wait for an event. 0 means return immediately. None means block forever
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (91 > 80 characters)
              Open

                      # type: (Queue, tp.Callable[[MessageReceived], None]) -> tp.Tuple[Consumer, Future]
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (90 > 80 characters)
              Open

                                         if you leave it at None, messages will be .put into self.events
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              Line too long (94 > 80 characters)
              Open

                      :return: a tuple (Consumer instance, and a Future), that tells, when consumer is ready
              Severity: Minor
              Found in coolamqp/clustering/cluster.py by pep8

              Limit all lines to a maximum of 79 characters.

              There are still many devices around that are limited to 80 character
              lines; plus, limiting windows to 80 characters makes it possible to
              have several windows side-by-side.  The default wrapping on such
              devices looks ugly.  Therefore, please limit all lines to a maximum
              of 79 characters. For flowing long blocks of text (docstrings or
              comments), limiting the length to 72 characters is recommended.
              
              Reports error E501.

              There are no issues that match your filters.

              Category
              Status