ComplianceAsCode/content

View on GitHub
tests/test_macros_oval.py

Summary

Maintainability
D
2 days
Test Coverage

File test_macros_oval.py has 1022 lines of code (exceeds 400 allowed). Consider refactoring.
Open

#!/usr/bin/python3

import argparse

import oval_tester
Severity: Major
Found in tests/test_macros_oval.py - About 2 days to fix

    Function main has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def main():
        parser = argparse.ArgumentParser(
            description="Test Jinja macros that Generate OVAL")
        parser.add_argument(
            "--verbose", action="store_true", default=False,
    Severity: Major
    Found in tests/test_macros_oval.py - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status