ComplianceAsCode/content

View on GitHub
tests/ssg_test_suite/oscap.py

Summary

Maintainability
F
3 days
Test Coverage

File oscap.py has 576 lines of code (exceeds 400 allowed). Consider refactoring.
Open

#!/usr/bin/python3
from __future__ import print_function

import collections
import datetime
Severity: Major
Found in tests/ssg_test_suite/oscap.py - About 6 hrs to fix

    GenericRunner has 23 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class GenericRunner(object):
        def __init__(self, environment, profile, datastream, benchmark_id):
            self.environment = environment
            self.profile = profile
            self.datastream = datastream
    Severity: Minor
    Found in tests/ssg_test_suite/oscap.py - About 2 hrs to fix

      Function run_stage has a Cognitive Complexity of 14 (exceeds 7 allowed). Consider refactoring.
      Open

          def run_stage(self, stage):
              self.stage = stage
      
              self._make_verbose_path()
              self._make_report_path()
      Severity: Minor
      Found in tests/ssg_test_suite/oscap.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 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(
      Severity: Major
      Found in tests/ssg_test_suite/oscap.py - About 1 hr to fix

        Function _remove_files_to_clean has a Cognitive Complexity of 9 (exceeds 7 allowed). Consider refactoring.
        Open

            def _remove_files_to_clean(self):
                if self.clean_files:
                    for fname in tuple(self._filenames_to_clean_afterwards):
                        try:
                            if os.path.exists(fname):
        Severity: Minor
        Found in tests/ssg_test_suite/oscap.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

        Function is_virtual_oscap_profile has a Cognitive Complexity of 8 (exceeds 7 allowed). Consider refactoring.
        Open

        def is_virtual_oscap_profile(profile):
            """ Test if the profile belongs to the so called category virtual
                from OpenSCAP available profiles. It can be (all) or other id we
                might come up in the future, it just needs to be encapsulated
                with parenthesis for example "(custom_profile)".
        Severity: Minor
        Found in tests/ssg_test_suite/oscap.py - About 25 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

        Method "__init__" has 10 parameters, which is greater than the 7 authorized.
        Open

                    self, environment, profile, datastream, benchmark_id,
                    rule_id, script_name, dont_clean, no_reports, manual_debug):
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py by sonar-python

        A long parameter list can indicate that a new structure should be created to wrap the numerous parameters or that the function is doing too many things.

        Noncompliant Code Example

        With a maximum number of 4 parameters:

        def do_something(param1, param2, param3, param4, param5):
            ...
        

        Compliant Solution

        def do_something(param1, param2, param3, param4):
            ...
        

        Either merge this branch with the identical one on line "237" or change one of the implementations.
        Open

                        return True
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py by sonar-python

        Having two branches in the same if structure with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then they should be combined.

        Noncompliant Code Example

        if 0 <= a < 10:
            do_the_thing()
        elif 10 <= a < 20:
            do_the_other_thing()
        elif 20 <= a < 50:
            do_the_thing()  # Noncompliant; duplicates first condition
        else:
            do_the_rest()
        
        b = 4 if a > 12 else 4
        

        Compliant Solution

        if (0 <= a < 10) or (20 <= a < 50):
            do_the_thing()
        elif 10 <= a < 20:
            do_the_other_thing()
        else:
            do_the_rest()
        
        b = 4
        

        or

        if 0 <= a < 10:
            do_the_thing()
        elif 10 <= a < 20:
            do_the_other_thing()
        elif 20 <= a < 50:
            do_the_third_thing()
        else:
            do_the_rest()
        
        b = 8 if a > 12 else 4
        

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

            def final(self):
                if self.create_reports and "--results-arf" not in self.command_options:
                    self.command_options += ['--results-arf', self.arf_path]
                result = self.make_oscap_call()
                return result
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 1 other location - About 2 hrs to fix
        tests/ssg_test_suite/oscap.py on lines 399..403

        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 51.

        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 2 locations. Consider refactoring.
        Open

            def initial(self):
                if self.create_reports and "--results-arf" not in self.command_options:
                    self.command_options += ['--results-arf', self.arf_path]
                result = self.make_oscap_call()
                return result
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 1 other location - About 2 hrs to fix
        tests/ssg_test_suite/oscap.py on lines 408..412

        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 51.

        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

            def _make_results_path(self):
                results_basename = self._get_results_basename()
                results_path = os.path.join(LogHelper.LOG_DIR, results_basename)
                self.results_path = LogHelper.find_name(results_path, '.xml')
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 2 other locations - About 1 hr to fix
        tests/ssg_test_suite/oscap.py on lines 296..299
        tests/ssg_test_suite/oscap.py on lines 304..307

        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 45.

        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

            def _make_verbose_path(self):
                verbose_basename = self._get_verbose_basename()
                verbose_path = os.path.join(LogHelper.LOG_DIR, verbose_basename)
                self.verbose_path = LogHelper.find_name(verbose_path, '.verbose.log')
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 2 other locations - About 1 hr to fix
        tests/ssg_test_suite/oscap.py on lines 304..307
        tests/ssg_test_suite/oscap.py on lines 312..315

        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 45.

        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 2 locations. Consider refactoring.
        Open

                try:
                    self.test_env.start()
                except Exception as exc:
                    msg = ("Failed to start test environment '{0}': {1}"
                           .format(self.test_env.name, str(exc)))
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 1 other location - About 1 hr to fix
        tests/ssg_test_suite/oscap.py on lines 721..726

        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 45.

        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

            def _make_report_path(self):
                report_basename = self._get_report_basename()
                report_path = os.path.join(LogHelper.LOG_DIR, report_basename)
                self.report_path = LogHelper.find_name(report_path, '.html')
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 2 other locations - About 1 hr to fix
        tests/ssg_test_suite/oscap.py on lines 296..299
        tests/ssg_test_suite/oscap.py on lines 312..315

        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 45.

        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 2 locations. Consider refactoring.
        Open

                try:
                    self.test_env.finalize()
                except Exception as exc:
                    msg = ("Failed to finalize test environment '{0}': {1}"
                           .format(self.test_env.name, str(exc)))
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 1 other location - About 1 hr to fix
        tests/ssg_test_suite/oscap.py on lines 710..715

        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 45.

        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 4 locations. Consider refactoring.
        Open

            def initial(self):
                self.command_options += ['--results-arf', self.arf_path]
                return super(BashProfileRunner, self).initial()
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 3 other locations - About 30 mins to fix
        tests/ssg_test_suite/oscap.py on lines 599..601
        tests/ssg_test_suite/oscap.py on lines 639..641
        tests/ssg_test_suite/oscap.py on lines 653..655

        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 32.

        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

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

            if not get_file_remote(test_env, verbose_path, LogHelper.LOG_DIR,
                                   '/' + formatting['output_file']):
                return False
        Severity: Minor
        Found in tests/ssg_test_suite/oscap.py and 1 other location - About 30 mins to fix
        tests/ssg_test_suite/oscap.py on lines 140..142

        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 32.

        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

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

            if not get_file_remote(test_env, verbose_path, LogHelper.LOG_DIR,
                                   '/' + formatting['output_file']):
                return False
        Severity: Minor
        Found in tests/ssg_test_suite/oscap.py and 1 other location - About 30 mins to fix
        tests/ssg_test_suite/oscap.py on lines 189..191

        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 32.

        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 4 locations. Consider refactoring.
        Open

            def initial(self):
                self.command_options += ['--results-arf', self.arf_path]
                return super(BashRuleRunner, self).initial()
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 3 other locations - About 30 mins to fix
        tests/ssg_test_suite/oscap.py on lines 599..601
        tests/ssg_test_suite/oscap.py on lines 615..617
        tests/ssg_test_suite/oscap.py on lines 653..655

        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 32.

        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 4 locations. Consider refactoring.
        Open

            def initial(self):
                self.command_options += ['--results-arf', self.arf_path]
                return super(AnsibleProfileRunner, self).initial()
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 3 other locations - About 30 mins to fix
        tests/ssg_test_suite/oscap.py on lines 615..617
        tests/ssg_test_suite/oscap.py on lines 639..641
        tests/ssg_test_suite/oscap.py on lines 653..655

        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 32.

        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 4 locations. Consider refactoring.
        Open

            def initial(self):
                self.command_options += ['--results-arf', self.arf_path]
                return super(AnsibleRuleRunner, self).initial()
        Severity: Major
        Found in tests/ssg_test_suite/oscap.py and 3 other locations - About 30 mins to fix
        tests/ssg_test_suite/oscap.py on lines 599..601
        tests/ssg_test_suite/oscap.py on lines 615..617
        tests/ssg_test_suite/oscap.py on lines 639..641

        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 32.

        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 (101 > 99 characters)
        Open

                success = run_stage_remediation_bash('rule', self.environment, formatting, self.verbose_path)
        Severity: Minor
        Found in tests/ssg_test_suite/oscap.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 > 99 characters)
        Open

                success = run_stage_remediation_ansible('rule', self.environment, formatting, self.verbose_path)
        Severity: Minor
        Found in tests/ssg_test_suite/oscap.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 > 99 characters)
        Open

                return run_stage_remediation_bash('profile', self.environment, formatting, self.verbose_path)
        Severity: Minor
        Found in tests/ssg_test_suite/oscap.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