KissPeter/APIFuzzer

View on GitHub
apifuzzer/custom_fuzzers.py

Summary

Maintainability
A
1 hr
Test Coverage
F
53%

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

    def __init__(
Severity: Minor
Found in apifuzzer/custom_fuzzers.py - About 45 mins to fix

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

        def __init__(
    Severity: Minor
    Found in apifuzzer/custom_fuzzers.py - About 45 mins to fix

      Remove or correct this useless self-assignment.
      Open

              self.logger = self.logger = get_logger(self.__class__.__name__)
      Severity: Major
      Found in apifuzzer/custom_fuzzers.py by sonar-python

      There is no reason to re-assign a variable to itself. Either this statement is redundant and should be removed, or the re-assignment is a mistake and some other value or variable was intended for the assignment instead.

      Noncompliant Code Example

      name = name
      

      Compliant Solution

      name = other.name
      

      See

      Line too long (111 > 79 characters)
      Open

          This custom fuzzer iterates through the UTF8 chars and gives back random section between min and max length
      Severity: Minor
      Found in apifuzzer/custom_fuzzers.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 > 79 characters)
      Open

          Highly relies on random numbers so most probably will give you different values each time to run it.
      Severity: Minor
      Found in apifuzzer/custom_fuzzers.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 > 79 characters)
      Open

          Above 1114111 chars started to getting unprocessable so this is the upper limit for now.
      Severity: Minor
      Found in apifuzzer/custom_fuzzers.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 > 79 characters)
      Open

              current_mutation_length = secure_randint(self.min_length, self.max_length)
      Severity: Minor
      Found in apifuzzer/custom_fuzzers.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 (80 > 79 characters)
      Open

              for st in range(self.position, self.position + current_mutation_length):
      Severity: Minor
      Found in apifuzzer/custom_fuzzers.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 > 79 characters)
      Open

              super(UnicodeStrings, self).__init__(name=name, value=value, fuzzable=fuzzable)
      Severity: Minor
      Found in apifuzzer/custom_fuzzers.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