ComplianceAsCode/content

View on GitHub
Update ssg/build_yaml.py #18681
Marcus Burghardt authored 1d1dc84f
complete00:01:30
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-pep8:b25
b25: Pulling from codeclimate/codeclimate-pep8
ab6db1bc80d0: Pulling fs layer
bf17e9a1c113: Pulling fs layer
4f8d95c214b1: Pulling fs layer
0de813e89c33: Pulling fs layer
a9696c7f4cd8: Pulling fs layer
51b9219e6e44: Pulling fs layer
e3c7e34cb08c: Pulling fs layer
328f3a57c882: Pulling fs layer
43b5f16a0c84: Pulling fs layer
0de813e89c33: Waiting
a9696c7f4cd8: Waiting
51b9219e6e44: Waiting
e3c7e34cb08c: Waiting
328f3a57c882: Waiting
43b5f16a0c84: Waiting
bf17e9a1c113: Verifying Checksum
bf17e9a1c113: Download complete
4f8d95c214b1: Verifying Checksum
4f8d95c214b1: Download complete
ab6db1bc80d0: Verifying Checksum
ab6db1bc80d0: Download complete
a9696c7f4cd8: Verifying Checksum
a9696c7f4cd8: Download complete
e3c7e34cb08c: Verifying Checksum
e3c7e34cb08c: Download complete
ab6db1bc80d0: Pull complete
51b9219e6e44: Verifying Checksum
51b9219e6e44: Download complete
0de813e89c33: Verifying Checksum
0de813e89c33: Download complete
bf17e9a1c113: Pull complete
328f3a57c882: Verifying Checksum
328f3a57c882: Download complete
43b5f16a0c84: Download complete
4f8d95c214b1: Pull complete
0de813e89c33: Pull complete
a9696c7f4cd8: Pull complete
51b9219e6e44: Pull complete
e3c7e34cb08c: Pull complete
328f3a57c882: Pull complete
43b5f16a0c84: Pull complete
Digest: sha256:75f70c714bc5f9e65359d45469a1fe7c1b181a15aee8fbabec7e23c65b19d447
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-pep8:b25
docker pull codeclimate/codeclimate-radon:b695
b695: Pulling from codeclimate/codeclimate-radon
e00d546a75ad: Pulling fs layer
21f0a0866768: Pulling fs layer
cd9d3946aa16: Pulling fs layer
2e56add6654f: Pulling fs layer
6c87f215a2be: Pulling fs layer
c2b31566ca3d: Pulling fs layer
2e56add6654f: Waiting
6c87f215a2be: Waiting
c2b31566ca3d: Waiting
21f0a0866768: Verifying Checksum
21f0a0866768: Download complete
e00d546a75ad: Verifying Checksum
e00d546a75ad: Download complete
e00d546a75ad: Pull complete
cd9d3946aa16: Verifying Checksum
cd9d3946aa16: Download complete
6c87f215a2be: Verifying Checksum
6c87f215a2be: Download complete
21f0a0866768: Pull complete
c2b31566ca3d: Verifying Checksum
c2b31566ca3d: Download complete
cd9d3946aa16: Pull complete
2e56add6654f: Download complete
2e56add6654f: Pull complete
6c87f215a2be: Pull complete
c2b31566ca3d: Pull complete
Digest: sha256:dfeb7edc634b4e2f851f3c788f7c21bd8bae097d4c66af722c76a6ba51121f98
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-radon:b695
docker pull codeclimate/codeclimate-sonar-python:b10
b10: Pulling from codeclimate/codeclimate-sonar-python
709515475419: Pulling fs layer
d1c225ed7c34: Pulling fs layer
887f300163b6: Pulling fs layer
a3ed95caeb02: Pulling fs layer
9b412187b352: Pulling fs layer
8fe915fa1948: Pulling fs layer
65145a386a45: Pulling fs layer
a64dfb9c0f27: Pulling fs layer
59a464ab5a51: Pulling fs layer
47413513c002: Pulling fs layer
9f30da6d3676: Pulling fs layer
9b412187b352: Waiting
8fe915fa1948: Waiting
65145a386a45: Waiting
a64dfb9c0f27: Waiting
59a464ab5a51: Waiting
47413513c002: Waiting
9f30da6d3676: Waiting
a3ed95caeb02: Waiting
d1c225ed7c34: Verifying Checksum
d1c225ed7c34: Download complete
709515475419: Verifying Checksum
a3ed95caeb02: Download complete
9b412187b352: Download complete
709515475419: Pull complete
d1c225ed7c34: Pull complete
65145a386a45: Verifying Checksum
65145a386a45: Download complete
887f300163b6: Verifying Checksum
887f300163b6: Download complete
59a464ab5a51: Verifying Checksum
59a464ab5a51: Download complete
8fe915fa1948: Verifying Checksum
8fe915fa1948: Download complete
47413513c002: Verifying Checksum
47413513c002: Download complete
a64dfb9c0f27: Verifying Checksum
a64dfb9c0f27: Download complete
9f30da6d3676: Verifying Checksum
9f30da6d3676: Download complete
887f300163b6: Pull complete
a3ed95caeb02: Pull complete
9b412187b352: Pull complete
8fe915fa1948: Pull complete
65145a386a45: Pull complete
a64dfb9c0f27: Pull complete
59a464ab5a51: Pull complete
47413513c002: Pull complete
9f30da6d3676: Pull complete
Digest: sha256:7904831e83e5474cba8a95726a691787d74d669d74a8721f114057ebb4a8943d
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-sonar-python:b10
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-21T13:43:52.544629 #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-21T13:43:55.190418 #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-21T13:43:55.205395 #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-21T13:43:55.219729 #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-21T13:43:55.222865 #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-21T13:43:55.237411 #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-21T13:43:55.239462 #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-21T13:43:55.256095 #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-21T13:43:55.256936 #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-21T13:43:55.268982 #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-21T13:43:55.296495 #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-21T13:43:55.333231 #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-21T13:43:55.389375 #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-21T13:43:55.464268 #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-21T13:43:55.473198 #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-21T13:43:55.546341 #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-21T13:43:55.564625 #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-21T13:43:55.624589 #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-21T13:43:55.637841 #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-21T13:43:55.656620 #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-21T13:43:55.828639 #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-21T13:43:55.880816 #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-21T13:43:55.893399 #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-21T13:43:55.918004 #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-21T13:43:55.934007 #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-21T13:43:55.950289 #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-21T13:43:55.967495 #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-21T13:43:55.967561 #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-21T13:43:55.979335 #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-21T13:43:55.988338 #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-21T13:43:55.992526 #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-21T13:43:56.005862 #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-21T13:43:56.009739 #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-21T13:43:56.018445 #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-21T13:43:56.068494 #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-21T13:43:56.069619 #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-21T13:43:56.079781 #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-21T13:43:56.081097 #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-21T13:43:56.091038 #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-21T13:43:56.095697 #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-21T13:43:56.102353 #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-21T13:43:56.113638 #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-21T13:43:56.137701 #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-21T13:43:56.579379 #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-21T13:43:56.595492 #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-21T13:43:56.638428 #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-21T13:43:56.652579 #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-21T13:43:56.702349 #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-21T13:43:56.908464 #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: 4.785s
INFO: Final Memory: 24M/1150M
INFO: ------------------------------------------------------------------------
11
shellcheck
shellcheck engine documentation
12
editorconfig
editorconfig engine documentation