ComplianceAsCode/content

View on GitHub
Merge pull request #12482 from alanmcanonical/apparmor_load_all #18628
Eduardo Barretto authored 3322dc9c
complete00:00:42
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-editorconfig:b855
b855: Pulling from codeclimate/codeclimate-editorconfig
a073c86ecf9e: Pulling fs layer
0e28711eb56d: Pulling fs layer
e460dd483fdd: Pulling fs layer
54992f8503df: Pulling fs layer
c2238fe48590: Pulling fs layer
cb4230eeef73: Pulling fs layer
b65d797fb447: Pulling fs layer
b85108c1334c: Pulling fs layer
54992f8503df: Waiting
c2238fe48590: Waiting
cb4230eeef73: Waiting
b65d797fb447: Waiting
b85108c1334c: Waiting
a073c86ecf9e: Download complete
e460dd483fdd: Verifying Checksum
e460dd483fdd: Download complete
a073c86ecf9e: Pull complete
0e28711eb56d: Verifying Checksum
0e28711eb56d: Download complete
54992f8503df: Verifying Checksum
54992f8503df: Download complete
c2238fe48590: Verifying Checksum
c2238fe48590: Download complete
b85108c1334c: Verifying Checksum
b85108c1334c: Download complete
cb4230eeef73: Verifying Checksum
cb4230eeef73: Download complete
b65d797fb447: Verifying Checksum
b65d797fb447: Download complete
0e28711eb56d: Pull complete
e460dd483fdd: Pull complete
54992f8503df: Pull complete
c2238fe48590: Pull complete
cb4230eeef73: Pull complete
b65d797fb447: Pull complete
b85108c1334c: Pull complete
Digest: sha256:6d2c4a9632c2f4d3d5c7ea8aa58739fb07a6276a39847a8c00276e38cf1de302
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-editorconfig:b855
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-11T17:35:39.376181 #1]  INFO -- : Skipping file build-scripts/generate_guides.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 73
    help=f"Version of OpenSCAP that owns {XCCDF_GUIDE_XSL}, eg. 1.3.8")
                                                                     ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.193890 #1]  INFO -- : Skipping file utils/render-rule.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 64
    f"{str(exc)}. Make sure that the product is compiled, "
                                                          ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.214682 #1]  INFO -- : Skipping file utils/srg_rule_audit.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    def check_selection(product: str, selection: str) -> None:
                               ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.225417 #1]  INFO -- : Skipping file utils/ansible_shell_diff.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 56
    print(f"Changes in Ansible shell module have been found:")
                                                            ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.225959 #1]  INFO -- : Skipping file utils/controleval_metrics.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    raise RuntimeError(msg) from e
                               ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.236520 #1]  INFO -- : Skipping file utils/refchecker.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 116
    print(msg, file=sys.stderr)
                   ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.237009 #1]  INFO -- : Skipping file utils/build_control_from_reference.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.247444 #1]  INFO -- : Skipping file utils/generate_profile.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 41
    def setup_argument_parser() -> argparse.ArgumentParser:
                                ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.248010 #1]  INFO -- : Skipping file utils/render_all_policies.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    def parse_args() -> argparse.Namespace:
                     ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.258860 #1]  INFO -- : Skipping file utils/create_srg_export.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 36
    f'{datetime.datetime.now().strftime("%s")}_stig_export.csv')
                                                              ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.281602 #1]  INFO -- : Skipping file utils/find_unused_rules.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.307422 #1]  INFO -- : Skipping file utils/controleval.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    raise RuntimeError(msg) from e
                               ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.349051 #1]  INFO -- : Skipping file utils/check_eof.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def parse_args() -> argparse.Namespace:
                     ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.409395 #1]  INFO -- : Skipping file utils/ansible_playbook_to_role.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 425
    ref = self.remote_repo.get_git_ref(f'heads/{branch}')
                                                       ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.414664 #1]  INFO -- : Skipping file utils/srg_audit.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def has_element(search: list, target: str) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.472754 #1]  INFO -- : Skipping file utils/compare_results.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 34
    def get_wining_status(cls, current_status: str, proposed: str) -> str:
                                             ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.484283 #1]  INFO -- : Skipping file utils/compare_versions.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def parse_args() -> argparse.Namespace:
                     ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.520009 #1]  INFO -- : Skipping file utils/release_helper.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    def get_parameter_from_ini(config_file, section, parameter) -> str:
                                                                ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.551056 #1]  INFO -- : Skipping file utils/build_ds_container.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 120
    log.debug(f'Created namespace {args.namespace}')
                                                  ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.561897 #1]  INFO -- : Skipping file utils/import_disa_stig.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.686288 #1]  INFO -- : Skipping file utils/import_srg_spreadsheet.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.728160 #1]  INFO -- : Skipping file utils/mod_checks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 100
    file=sys.stderr)
        ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.747183 #1]  INFO -- : Skipping file utils/build_stig_control.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    def check_output(output: str) -> None:
                           ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.758771 #1]  INFO -- : Skipping file utils/mod_fixes.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 102
    file=sys.stderr)
        ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.769639 #1]  INFO -- : Skipping file utils/srg_diff.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.783991 #1]  INFO -- : Skipping file utils/render_components.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    def parse_args() -> argparse.Namespace:
                     ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.794300 #1]  INFO -- : Skipping file utils/build_profiler_report.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def load_log_file(file) -> dict:
                            ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.794863 #1]  INFO -- : Skipping file utils/controlrefcheck.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    def parse_args() -> argparse.Namespace:
                     ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.805290 #1]  INFO -- : Skipping file utils/oscal/build_cd_from_policy.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.809794 #1]  INFO -- : Skipping file utils/oscal/control_selector.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.816071 #1]  INFO -- : Skipping file utils/oscal/cd_generator.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 59
    def from_string(source: str) -> str:
                          ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.820565 #1]  INFO -- : Skipping file utils/oscal/rules_transformer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 38
    def __init__(self, rule_id: str, rule_dir: str) -> None:
                              ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.826768 #1]  INFO -- : Skipping file utils/oscal/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    TRESTLE_CD_NS = f"{TRESTLE_GENERIC_NS}/cd"
                                             ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.831088 #1]  INFO -- : Skipping file utils/oscal/params_extractor.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def find_var_files(directory: str) -> Generator[str, None, None]:
                                ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.865023 #1]  INFO -- : Skipping file utils/srg_utils/yaml.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    result = (*result, f"    {line}",)
              ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.875477 #1]  INFO -- : Skipping file utils/srg_utils/worksheet_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def from_row(sheet: Worksheet, row_number: int, full_name: str, changed_name: str) -> Row:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.876350 #1]  INFO -- : Skipping file utils/srg_utils/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def get_full_name(root_dir: str, product: str) -> str:
                              ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.886526 #1]  INFO -- : Skipping file utils/srg_export/data.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def get_iacontrol_mapping(srg_id: str) -> dict:
                                    ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.887051 #1]  INFO -- : Skipping file utils/srg_export/html.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 48
    def handle_dict(data: list, output_path: str, title: str) -> None:
                        ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.897251 #1]  INFO -- : Skipping file utils/srg_export/md.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 4
    def get_heading(row: dict) -> str:
                       ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.898009 #1]  INFO -- : Skipping file utils/srg_export/xlsx.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 35
    def setup_sheet(sheet: openpyxl.worksheet.worksheet.Worksheet) -> None:
                         ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.908733 #1]  INFO -- : Skipping file utils/profile_tool/common.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    values = ", ".join([f"{key}: {value}" for key, value in value_b.items()])
                                        ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:41.937347 #1]  INFO -- : Skipping file utils/profile_tool/profile.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    if f"{profile_name}.profile" in profile_path:
                               ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:42.278628 #1]  INFO -- : Skipping file tests/check_pcre2_compatibility.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def parse_args() -> argparse.Namespace:
                     ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:42.289292 #1]  INFO -- : Skipping file tests/stig_srg_mapping.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    print("The ssg module could not be found.", file=sys.stderr)
                                                    ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:42.321542 #1]  INFO -- : Skipping file tests/validate_automatus_metadata.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:42.330718 #1]  INFO -- : Skipping file tests/assert_reference_unique.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    def recursive_get_rule_files() -> Iterator[str]:
                                   ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:42.381030 #1]  INFO -- : Skipping file tests/cces-removed.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def _parse_args() -> argparse.Namespace:
                      ^
SyntaxError: invalid syntax


I, [2024-11-11T17:35:42.594835 #1]  INFO -- : Skipping file tests/install_vm.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 166
    print(f'Waiting for {domain} VM to shutdown (max. {timeout}s)')
                                                                 ^
SyntaxError: invalid syntax
7
markdownlint
markdownlint engine documentation
View output
/usr/local/bundle/gems/posix-spawn-0.3.11/lib/posix/spawn.rb:467: warning: constant ::Fixnum is deprecated
/usr/local/bundle/gems/mdl-0.5.0/lib/mdl/rules.rb:624:in `block (3 levels) in load': undefined method `type' for nil:NilClass (NoMethodError)
	from /usr/local/bundle/gems/mdl-0.5.0/lib/mdl/rules.rb:623:in `select'
	from /usr/local/bundle/gems/mdl-0.5.0/lib/mdl/rules.rb:623:in `block (2 levels) in load'
	from /usr/local/bundle/gems/mdl-0.5.0/lib/mdl.rb:86:in `block (2 levels) in run'
	from /usr/local/bundle/gems/mdl-0.5.0/lib/mdl.rb:84:in `each'
	from /usr/local/bundle/gems/mdl-0.5.0/lib/mdl.rb:84:in `block in run'
	from /usr/local/bundle/gems/mdl-0.5.0/lib/mdl.rb:74:in `each'
	from /usr/local/bundle/gems/mdl-0.5.0/lib/mdl.rb:74:in `run'
	from /usr/local/bundle/gems/mdl-0.5.0/bin/mdl:10:in `<top (required)>'
	from /usr/local/bundle/bin/mdl:23:in `load'
	from /usr/local/bundle/bin/mdl:23:in `<main>'
8
pep8
pep8 engine documentation
View output
build-scripts/combine_ovals.py build-scripts/build_all_guides.py build-scripts/compile_product.py build-scripts/compose_ds.py build-scripts/generate_profile_remediations.py build-scripts/build_xccdf.py build-scripts/cpe_generate.py build-scripts/verify_references.py build-scripts/build_sce.py build-scripts/generate_manifest.py build-scripts/enable_derivatives.py build-scripts/collect_remediations.py build-scripts/generate_man_page.py build-scripts/expand_jinja.py build-scripts/build_rule_playbooks.py build-scripts/profile_tool.py build-scripts/generate_guides.py build-scripts/build_templated_content.py build-scripts/compile_all.py ssg/content_diff.py ssg/build_stig.py ssg/build_ovals.py ssg/contributors.py ssg/rules.py ssg/shims.py ssg/rule_dir_stats.py ssg/yaml.py ssg/build_remediations.py ssg/build_guides.py ssg/boolean_expression.py ssg/build_cpe.py ssg/build_derivatives.py ssg/environment.py ssg/parse_oval.py ssg/build_sce.py ssg/build_profile.py ssg/checks.py ssg/requirement_specs.py ssg/products.py ssg/constants.py ssg/templates.py ssg/fixes.py ssg/oval.py ssg/build_renumber.py ssg/xccdf.py ssg/components.py ssg/build_yaml.py ssg/cce.py ssg/__init__.py ssg/ansible.py ssg/utils.py ssg/controls.py ssg/id_translate.py ssg/jinja.py ssg/rule_yaml.py ssg/playbook_builder.py ssg/xml.py ssg/entities/profile_base.py ssg/entities/common.py ssg/entities/profile.py ssg/entities/__init__.py ssg/ext/boolean/boolean.py ssg/ext/boolean/__init__.py ssg/ext/__init__.py ssg/oval_object_model/general.py ssg/oval_object_model/oval_container.py ssg/oval_object_model/oval_entities/variable.py ssg/oval_object_model/oval_entities/test.py ssg/oval_object_model/oval_entities/__init__.py ssg/oval_object_model/oval_entities/state.py ssg/oval_object_model/oval_entities/definition.py ssg/oval_object_model/oval_entities/object.py ssg/oval_object_model/oval_shorthand.py ssg/oval_object_model/oval_document.py ssg/oval_object_model/__init__.py ssg/oval_object_model/oval_definition_references.py utils/render-rule.py utils/srg_rule_audit.py utils/ansible_shell_diff.py utils/controleval_metrics.py utils/refchecker.py utils/build_control_from_reference.py utils/generate_profile.py utils/render_all_policies.py utils/create-stig-overlay.py utils/create_srg_export.py utils/find_unused_rules.py utils/gen_multiple_reference_tables.py utils/add_kubernetes_rule.py utils/controleval.py utils/check_eof.py utils/gen_rendered_policies_index.py utils/compare_ds.py utils/render-policy.py utils/gen_html_guides_index.py utils/ansible_playbook_to_role.py utils/srg_audit.py utils/gen_stig_table.py utils/create_scap_delta_tailoring.py utils/compare_results.py utils/template_renderer.py utils/compare_versions.py utils/generate_contributors.py utils/gen_tables.py utils/release_helper.py utils/fix_rules.py utils/build_ds_container.py utils/import_disa_stig.py utils/rule_dir_json.py utils/gen_profile_table.py utils/import_srg_spreadsheet.py utils/find_duplicates.py utils/__init__.py utils/shorthand_to_oval.py utils/mod_checks.py utils/gen_reference_table.py utils/render-rules.py utils/build_stig_control.py utils/regexify_banner.py utils/mod_fixes.py utils/srg_diff.py utils/gen_srg_table.py utils/render_components.py utils/build_profiler_report.py utils/controlrefcheck.py utils/oscal/build_cd_from_policy.py utils/oscal/control_selector.py utils/oscal/cd_generator.py utils/oscal/rules_transformer.py utils/oscal/__init__.py utils/oscal/params_extractor.py utils/rendering/common.py utils/rendering/__init__.py utils/tables/table_renderer.py utils/tables/__init__.py utils/srg_utils/yaml.py utils/srg_utils/worksheet_utils.py utils/srg_utils/__init__.py utils/srg_export/data.py utils/srg_export/html.py utils/srg_export/md.py utils/srg_export/xlsx.py utils/srg_export/__init__.py utils/profile_tool/common.py utils/profile_tool/sub.py utils/profile_tool/most_used_rules.py utils/profile_tool/profile.py utils/profile_tool/most_used_components.py utils/profile_tool/stats.py utils/profile_tool/__init__.py shared/templates/compliance_operator_not_found/template.py shared/templates/audit_rules_unsuccessful_file_modification/template.py shared/templates/accounts_password/template.py shared/templates/file_owner/template.py shared/templates/audit_rules_privileged_commands/template.py shared/templates/kernel_build_config/template.py shared/templates/auditd_lineinfile/template.py shared/templates/service_disabled/template.py shared/templates/file_existence/template.py shared/templates/grub2_bootloader_argument/template.py shared/templates/dconf_ini_file/template.py shared/templates/mount_option/template.py shared/templates/socket_disabled/template.py shared/templates/lineinfile/template.py shared/templates/platform_service_disabled/template.py shared/templates/firefox_policy-setting/template.py shared/templates/audit_rules_file_deletion_events/template.py shared/templates/sebool/template.py shared/templates/platform_package/template.py shared/templates/timer_enabled/template.py shared/templates/pam_options/template.py shared/templates/systemd_mount_enabled/template.py shared/templates/mount_option_remote_filesystems/template.py shared/templates/file_permissions/template.py shared/templates/mount/template.py shared/templates/coreos_kernel_option/template.py shared/templates/service_enabled/template.py shared/templates/cis_banner/template.py shared/templates/audit_file_contents/template.py shared/templates/audit_rules_login_events/template.py shared/templates/audit_rules_usergroup_modification/template.py shared/templates/package_installed/template.py shared/templates/rsyslog_logfiles_attributes_modify/template.py shared/templates/key_value_pair_in_file/template.py shared/templates/sshd_lineinfile/template.py shared/templates/audit_rules_watch/template.py shared/templates/shell_lineinfile/template.py shared/templates/file_groupowner/template.py shared/templates/grub2_bootloader_argument_absent/template.py shared/templates/sudo_defaults_option/template.py shared/templates/audit_rules_path_syscall/template.py shared/templates/yamlfile_value/template.py shared/templates/audit_rules_dac_modification/template.py shared/templates/sysctl/template.py tests/check_pcre2_compatibility.py tests/stig_srg_mapping.py tests/test_product_stability.py tests/test_reference_titles_in_benchmark.py tests/validate_automatus_metadata.py tests/assert_reference_unique.py tests/ensure_paths_are_short.py tests/test_ds_sce.py tests/ansible_playbooks_generated_for_all_rules.py tests/assert_ansible_schema.py tests/cces-removed.py tests/stable_profile_ids.py tests/test_thin_ds.py tests/oval_tester.py tests/test_macros_oval.py tests/analyze_results.py tests/automatus.py tests/__init__.py tests/test_suite.py tests/missing_cces.py tests/test_profile_stability.py tests/test_machine_only_rules.py tests/install_vm.py tests/test_components.py tests/run_scapval.py tests/ssg_test_suite/log.py tests/ssg_test_suite/oscap.py tests/ssg_test_suite/template.py tests/ssg_test_suite/combined.py tests/ssg_test_suite/rule.py tests/ssg_test_suite/common.py tests/ssg_test_suite/xml_operations.py tests/ssg_test_suite/profile.py tests/ssg_test_suite/virt.py tests/ssg_test_suite/__init__.py tests/ssg_test_suite/test_env.py
9
radon
radon engine documentation
View output
Running radon3...
10
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 288 files indexed
ERROR: Unable to parse file: /code/utils/build_control_from_reference.py
ERROR: Parse error at line 63 column 17:

   58: join(root, "product_properties"))
   59:     return env_yaml
   60: 
   61: 
   62: def _get_id_mapping(env_yaml, reference, json_path: str) -> Dict:
  -->      rule_dir_json: Dict = _get_rule_dirs(json_path)
   64:     id_mapping: Dict[str, list[str]] = defaultdict(list)                                     
   65:     for rule_id, rule_obj in

ERROR: Unable to parse file: /code/utils/oscal/control_selector.py
ERROR: Parse error at line 45 column 21:

   40: =env_yaml)
   41:         controls_manager.load()
   42:         if control not in controls_manager.policies:
   43:             raise ValueError(f"Policy {control} not found in controls")
   44: 
  -->          self.controls: List[Control] = list()
   46:         if filter_by_level:
   47:             policy = controls_manager.policies[control]
   48:             if filter_by_level not in policy.

ERROR: Unable to parse file: /code/utils/oscal/cd_generator.py
ERROR: Parse error at line 85 column 29:

   80: """Helper class to handle OSCAL profile."""
   81: 
   82:     def __init__(self, trestle_root: pathlib.Path) -> None:
   83:         """Initialize."""
   84:         self._root = trestle_root
  -->          self.profile_controls: Set[str] = set()
   86:         self.controls_by_label: Dict[str, str] = dict()
   87: 
   88:     def load(self

ERROR: Unable to parse file: /code/utils/oscal/rules_transformer.py
ERROR: Parse error at line 43 column 24:

   38: ) -> None:
   39:         """Initialize."""
   40:         self._id = rule_id
   41:         self._description = ""
   42:         self._rule_dir = rule_dir
  -->          self._parameters: List[ParamInfo] = list()
   44: 
   45:     @property
   46:     def id(self) -> str:
   47:         """Get the id."""
   48:         return self.

ERROR: Unable to parse file: /code/utils/oscal/params_extractor.py
ERROR: Parse error at line 33 column 21:

   28: ) -> None:
   29:         """Initialize."""
   30:         self._id = param_id
   31:         self._description = description
   32:         self._value = ""
  -->          self._options: Dict[str, str] = dict()
   34: 
   35:     @property
   36:     def id(self) -> str:
   37:         """Get the id."""
   38:         return

ERROR: Unable to parse file: /code/tests/check_pcre2_compatibility.py
ERROR: Parse error at line 28 column 11:

   23: not None:
   24:                 yield el.text
   25: 
   26: 
   27: def extract_all_regexes_from_oval(root: ET.Element) -> list:
  -->      regexes: List[str] = []
   29:     sections_xpaths = ["./oval-def:objects", "./oval-def:states"]
   30:     for section_xpath in sections_xpaths:
   31:         regexes += find_all_patern_match(root,

ERROR: Unable to parse file: /code/tests/cces-removed.py
ERROR: Parse error at line 37 column 15:

   33: add(identifier_value)
   34: 
   35: 
   36: def _get_cces_in_use(data: dict, products: str) -> Set[str]:
  -->      cces_in_use: Set[str] = set()
   38:     for _, rule_obj in data.items():
   39:         _process_rule(cces_in_use, products, rule_obj

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 2.893s
INFO: Final Memory: 23M/1149M
INFO: ------------------------------------------------------------------------
11
shellcheck
shellcheck engine documentation
12
editorconfig
editorconfig engine documentation