avocado-framework/avocado

View on GitHub
selftests/functional/basic.py

Summary

Maintainability
F
3 days
Test Coverage

Using xml.dom.minidom.parseString to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom.parseString with its defusedxml equivalent function or make sure defusedxml.defuse_stdlib() is called
Open

            xunit_doc = xml.dom.minidom.parseString(xml_output)
Severity: Minor
Found in selftests/functional/basic.py by bandit

Using xml.dom.minidom to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.
Open

import xml.dom.minidom
Severity: Info
Found in selftests/functional/basic.py by bandit

File basic.py has 1296 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import glob
import json
import os
import re
import tempfile
Severity: Major
Found in selftests/functional/basic.py - About 3 days to fix

    Function run_and_check has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def run_and_check(
    Severity: Major
    Found in selftests/functional/basic.py - About 1 hr to fix

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

          def run_and_check(self, testname, e_rc, e_ntests, e_nerrors, e_nfailures, e_nskip):
      Severity: Major
      Found in selftests/functional/basic.py - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status